mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Optionalize the nick in in the invite command.
This commit is contained in:
parent
9480ff3e88
commit
3fd71dc26a
@ -422,10 +422,10 @@ class Channel(callbacks.Privmsg):
|
|||||||
to join <channel>. <channel> is only necessary if the message isn't
|
to join <channel>. <channel> is only necessary if the message isn't
|
||||||
sent in the channel itself.
|
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'),
|
invite = wrap(invite, [('checkChannelCapability', 'op'),
|
||||||
('haveOp', 'invite someone'),
|
('haveOp', 'invite someone'),
|
||||||
'nick'])
|
additional('nick')])
|
||||||
|
|
||||||
def lobotomize(self, irc, msg, args, channel):
|
def lobotomize(self, irc, msg, args, channel):
|
||||||
"""[<channel>]
|
"""[<channel>]
|
||||||
|
Loading…
Reference in New Issue
Block a user