Fix nick treates as channel issue

Since nickname changes apply server-wide, they were incorrectly treated
as their own channels (this was a bug) - fixed this, and nickname
changes are now logged in all channels the bot has joined.
This commit is contained in:
Jonatan Pålsson 2017-06-10 12:23:07 +02:00
parent 96e6da2752
commit bf661d9577

View file

@ -222,6 +222,7 @@ class Logbot(SingleServerIRCBot):
if event_name == "nick":
message = params["new"]
target = params["chan"]
elif event_name == "kick":
message = "%s kicked %s from %s. Reason: %s" % (nm_to_n(params["kicker"]),
params["user"], params["channel"], params["reason"])