From 3fd71dc26a24941cfa9c19c63b0a37170de05723 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 7 Dec 2004 00:47:20 +0000 Subject: [PATCH] Optionalize the nick in in the invite command. --- src/Channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Channel.py b/src/Channel.py index 665b4d91d..9d941fdb1 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -422,10 +422,10 @@ class Channel(callbacks.Privmsg): to join . is only necessary if the message isn't sent in the channel itself. """ - self._sendMsg(ircmsgs.invite(nick, channel)) + self._sendMsg(ircmsgs.invite(nick or msg.nick, channel)) invite = wrap(invite, [('checkChannelCapability', 'op'), ('haveOp', 'invite someone'), - 'nick']) + additional('nick')]) def lobotomize(self, irc, msg, args, channel): """[]