From ed7945948ed9effdc26b31edfe27799a9f6abc0d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Sep 2014 20:02:03 -0400 Subject: limit messages to 512 bytes still need to avoid actually reading in bytes past 512 in an incoming message --- src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/constants.rs') 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 () { -- cgit v1.2.3-54-g00ecf