Merge pull request #4895 from Ccomp5950/irc-pm-fix

Canceling an IRC-adminPM will not send a blank message.
This commit is contained in:
Mloc
2014-05-03 17:10:27 +01:00

View File

@@ -189,6 +189,10 @@
return
var/msg = input(src,"Message:", "Private message to admins on IRC / 400 character limit") as text|null
if(!msg)
return
sanitize(msg)
if(length(msg) > 400) // TODO: if message length is over 400, divide it up into seperate messages, the message length restriction is based on IRC limitations. Probably easier to do this on the bots ends.