mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Stopped possible AttributeError (nick could've been None).
This commit is contained in:
parent
1f49fc1e3e
commit
69a83e8530
@ -387,7 +387,8 @@ class Channel(callbacks.Plugin):
|
||||
to join <channel>. <channel> is only necessary if the message isn't
|
||||
sent in the channel itself.
|
||||
"""
|
||||
self._sendMsg(irc, ircmsgs.invite(nick or msg.nick, channel))
|
||||
nick = nick or msg.nick
|
||||
self._sendMsg(irc, ircmsgs.invite(nick, channel))
|
||||
self.invites[(irc.getRealIrc(), ircutils.toLower(nick))] = irc
|
||||
invite = wrap(invite, ['op', ('haveOp', 'invite someone'),
|
||||
additional('nick')])
|
||||
|
Loading…
Reference in New Issue
Block a user