Skip to content

Commit

Permalink
irclog
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiacTwister committed Sep 25, 2012
1 parent 14a59f5 commit fa6b83c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ircdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,12 @@ def parseMessage(self, s):
dest = args.pop(0)
cmd = args[0].split(" ")

logging.debug("[IRC] Received command: %s %s %s %s" % (nick, host.replace("~", ""), dest, cmd[0]))
#logging.debug("[IRC] Received command: %s %s %s %s" % (nick, host.replace("~", ""), dest, cmd[0]))
if len(cmd) >= 1:
if "!opme" in cmd[0] and len(cmd) >= 2:
logging.debug("[IRC] Received command !opme from %s with pw %s and host %s and pw %s and chan %s" % (nick, cmd[1], self.adminhost, self.adminpw, dest))
if cmd[1] == self.adminpw and host.replace("~", "") == self.adminhost:
self.sendSocket("MODE %s +o %s\r\n" % (dest, nick))
logging.debug("[IRC] Opped %s: MODE %s +o %s" % (nick, dest, nick))
logging.debug("[IRC] Opped %s" % nick)
except:
return

Expand Down

0 comments on commit fa6b83c

Please sign in to comment.