mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Wrong number of arguments on error.
This commit is contained in:
parent
32268cdef8
commit
b321ca8bb9
@ -178,7 +178,7 @@ class Topic(callbacks.Privmsg):
|
|||||||
username = msg.nick
|
username = msg.nick
|
||||||
if name != username and \
|
if name != username and \
|
||||||
not ircdb.checkCapabilities(msg.prefix, ('op', 'admin')):
|
not ircdb.checkCapabilities(msg.prefix, ('op', 'admin')):
|
||||||
irc.error('You can only remove your own topics.')
|
irc.error(msg, 'You can only remove your own topics.')
|
||||||
return
|
return
|
||||||
newTopic = self.topicSeparator.join(topics)
|
newTopic = self.topicSeparator.join(topics)
|
||||||
irc.queueMsg(ircmsgs.topic(channel, newTopic))
|
irc.queueMsg(ircmsgs.topic(channel, newTopic))
|
||||||
|
Loading…
Reference in New Issue
Block a user