From 1944048870ee48652de38c9f07e3dae51fa6db7c 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 9bdd8abf651..a27b89303eb 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -192,6 +192,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.