mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-04 09:21:12 -05:00
OperUp: use ircmsgs.mode
This commit is contained in:
parent
10cdf34797
commit
cc922126cb
@ -108,7 +108,7 @@ class OperUp(callbacks.Plugin):
|
|||||||
|
|
||||||
def deoper(self, irc, msg, args):
|
def deoper(self, irc, msg, args):
|
||||||
"""Deoper."""
|
"""Deoper."""
|
||||||
irc.sendMsg(ircmsgs.IrcMsg(command="MODE", args=[irc.nick, "-Oo"]))
|
irc.sendMsg(ircmsgs.mode(irc.nick, "-Oo"))
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
deoper = wrap(deoper, ['owner'])
|
deoper = wrap(deoper, ['owner'])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user