summaryrefslogtreecommitdiffstats
path: root/src/constants.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-09 20:02:03 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-09 20:02:03 -0400
commited7945948ed9effdc26b31edfe27799a9f6abc0d (patch)
tree102d157cc88ce25e9f9384a9e7f968212635573a /src/constants.rs
parent1f00b773bb45e7c7a0c4acf3905aa2770e2f4470 (diff)
downloadrust-irc-ed7945948ed9effdc26b31edfe27799a9f6abc0d.tar.gz
rust-irc-ed7945948ed9effdc26b31edfe27799a9f6abc0d.zip
limit messages to 512 bytes
still need to avoid actually reading in bytes past 512 in an incoming message
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constants.rs b/src/constants.rs
index ff5e399..b8b905e 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -337,7 +337,7 @@ pub static ERR_NOSERVICEHOST: u16 = 492;
pub static RPL_TOPICDATE: u16 = 333; // date the topic was set, in seconds since the epoch
pub static ERR_MSGFORBIDDEN: u16 = 505; // freenode blocking privmsg from unreged users
-pub static MAX_MESSAGE_LENGTH: i32 = 512;
+pub static MAX_MESSAGE_LENGTH: uint = 512;
#[test]
fn test_message_type () {