Explorar o código

admin homeadmin fix

tBKwtWS %!s(int64=8) %!d(string=hai) anos
pai
achega
082794e280
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      irc/commands/admin.py

+ 2 - 0
irc/commands/admin.py

@@ -120,9 +120,11 @@ def do_command(self, connection, event):
             connection.privmsg(replyto, grey + "Usage: " + blue + self.cmdchar + "join " + red + italic + "channel " + reset + italic + "password")
         elif cmdtype == "cmd":
             
+            homeadmin = False
             if userstatus.atleast_oper(self, event.source.nick, self.homechannel):    # Is at least operator in home channel.
                 homeadmin = True
             
+            targetadmin = False
             if userstatus.atleast_oper(self, event.source.nick, event.target):
                 targetadmin = True