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
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ 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
# kate: indent-mode python;indent-width 4;replace-tabs on; # kate: indent-mode python;indent-width 4;replace-tabs on;