Optionalize the nick in in the invite command.

This commit is contained in:
Jeremy Fincher 2004-12-07 00:47:20 +00:00
parent 9480ff3e88
commit 3fd71dc26a
1 changed files with 2 additions and 2 deletions

View File

@ -422,10 +422,10 @@ class Channel(callbacks.Privmsg):
to join <channel>. <channel> 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):
"""[<channel>]