diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-09 20:02:03 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-09 20:02:03 -0400 |
commit | ed7945948ed9effdc26b31edfe27799a9f6abc0d (patch) | |
tree | 102d157cc88ce25e9f9384a9e7f968212635573a /src/constants.rs | |
parent | 1f00b773bb45e7c7a0c4acf3905aa2770e2f4470 (diff) | |
download | rust-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.rs | 2 |
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 () { |