Fixed nick changes from being in their own log
This commit is contained in:
parent
fb5bb2ec18
commit
2f0e6c963a
1 changed files with 5 additions and 2 deletions
|
@ -50,7 +50,7 @@ DEBUG = False
|
||||||
SERVER = "irc.freenode.net"
|
SERVER = "irc.freenode.net"
|
||||||
PORT = 6667
|
PORT = 6667
|
||||||
SERVER_PASS = None
|
SERVER_PASS = None
|
||||||
CHANNELS=["#keryx"]
|
CHANNELS=["#excid3"]
|
||||||
NICK = "timber"
|
NICK = "timber"
|
||||||
NICK_PASS = None
|
NICK_PASS = None
|
||||||
|
|
||||||
|
@ -144,6 +144,9 @@ class Logbot(SingleServerIRCBot):
|
||||||
return "#%s" % md5(user).hexdigest()[:6]
|
return "#%s" % md5(user).hexdigest()[:6]
|
||||||
|
|
||||||
def format_event(self, name, event, params):
|
def format_event(self, name, event, params):
|
||||||
|
print event.target()
|
||||||
|
print event.source()
|
||||||
|
print event.arguments()
|
||||||
msg = self.format[name]
|
msg = self.format[name]
|
||||||
for key, val in params.iteritems():
|
for key, val in params.iteritems():
|
||||||
msg = msg.replace(key, val)
|
msg = msg.replace(key, val)
|
||||||
|
@ -166,7 +169,7 @@ class Logbot(SingleServerIRCBot):
|
||||||
msg = self.format_event(name, event, params)
|
msg = self.format_event(name, event, params)
|
||||||
|
|
||||||
# Quit goes across all channels
|
# Quit goes across all channels
|
||||||
if not chans:
|
if not chans or not chans.startswith("#"):
|
||||||
chans = self.chans
|
chans = self.chans
|
||||||
else:
|
else:
|
||||||
chans = [chans]
|
chans = [chans]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue