From a96229de1c35989218be7360e6b577d3c990af87 Mon Sep 17 00:00:00 2001 From: Grant Bowman Date: Mon, 6 Sep 2004 17:54:44 +0000 Subject: [PATCH] On second thought (thanks jemfinch) making insults to channels without knowing who is insulting can be used dangerously. In practice I have seen this command only used among friends or when someone is bored and wants to see the random string produced. --- plugins/Insult.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/Insult.py b/plugins/Insult.py index 8d8a7ba13..d458cfcb2 100644 --- a/plugins/Insult.py +++ b/plugins/Insult.py @@ -166,20 +166,18 @@ 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. is only necessary if the message isn't sent - in the channel itself. + object, etc. """ tempinsult = self._buildInsult() - channel = privmsgs.getChannel(msg, args) victim = privmsgs.getArgs(args, required=0, optional=1) if not victim: - irc.reply(tempinsult, to=channel, prefixName=False) + irc.reply(tempinsult, prefixName=False) else: irc.reply('%s - %s ' % (victim, tempinsult), - to=channel, prefixName=False) + prefixName=False) Class = Insult