Bläddra i källkod

admin homeadmin fix

tBKwtWS 8 år sedan
förälder
incheckning
082794e280
1 ändrade filer med 2 tillägg och 0 borttagningar
  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