diff --git a/plugins/Insult.py b/plugins/Insult.py index c20896734..8d8a7ba13 100644 --- a/plugins/Insult.py +++ b/plugins/Insult.py @@ -36,6 +36,7 @@ available for customizing. __author__ = "Mike Taylor " __revision__ = "$Id$" +#__contributors = ['Grant Bowman ', supybot.authors.jemfinch] # The list of words came from the mozbot Insult.bm module # The header of that module has the following credit: @@ -165,17 +166,20 @@ class Insult(callbacks.Privmsg): an, adj1, amount, adj2, noun) def insult(self, irc, msg, args): - """ [] + """[] [] Reply optionally directed at a random string, person, - object, etc. + object, etc. is only necessary if the message isn't sent + in the channel itself. """ tempinsult = self._buildInsult() + channel = privmsgs.getChannel(msg, args) victim = privmsgs.getArgs(args, required=0, optional=1) if not victim: - irc.reply(tempinsult) + irc.reply(tempinsult, to=channel, prefixName=False) else: - irc.reply(victim + ' - ' + tempinsult) + irc.reply('%s - %s ' % (victim, tempinsult), + to=channel, prefixName=False) Class = Insult