only append the roller's nick once, at the end, if there is a reply

This commit is contained in:
Brian S. Stephan 2010-09-04 12:08:13 -05:00
parent 27b27ecb61
commit a0fd33b070
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class Dice(Module):
else:
modifier = int(matches.group(6))
result = nick + ': ' + roll + ': '
result = roll + ': '
if comment is not None:
result += comment + ': '
@ -95,7 +95,7 @@ class Dice(Module):
if roll is not rolls[-1]:
reply += "; "
if reply is not "":
return self.reply(connection, replypath, reply)
return self.reply(connection, replypath, nick + ': ' + reply)
else:
print(what.split(' ')[0])