mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-04 01:10:59 -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):
|
||||
"""Deoper."""
|
||||
irc.sendMsg(ircmsgs.IrcMsg(command="MODE", args=[irc.nick, "-Oo"]))
|
||||
irc.sendMsg(ircmsgs.mode(irc.nick, "-Oo"))
|
||||
irc.replySuccess()
|
||||
deoper = wrap(deoper, ['owner'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user