OperUp: use ircmsgs.mode

This commit is contained in:
GLolol 2014-01-28 19:45:01 -08:00
parent 10cdf34797
commit cc922126cb

View File

@ -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'])