From ed25b7c870c9bb345542813d713147eda7c38c9b Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Sat, 3 May 2014 09:27:59 -0500 Subject: [PATCH] Canceling an IRC-adminPM will not send a blank message. Ooops --- code/modules/admin/verbs/adminpm.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index 12763c6a1b0..0770280a9cf 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -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.