dice: only try sending something if we actually have something to say

This commit is contained in:
Brian S. Stephan 2010-08-28 14:07:00 -05:00
parent 88c83c1e45
commit 4bf2d344fc

View File

@ -93,7 +93,7 @@ class Dice(Module):
reply += result reply += result
if roll is not rolls[-1]: if roll is not rolls[-1]:
reply += "; " reply += "; "
if reply is not "":
return self.reply(connection, replypath, reply) return self.reply(connection, replypath, reply)
# vi:tabstop=4:expandtab:autoindent # vi:tabstop=4:expandtab:autoindent