aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-17 13:09:22 +0100
committerGravatar jesopo2018-09-17 13:09:22 +0100
commit9bb81253cbe2d4e5c8e66e99c1cf13784afeb6cb (patch)
tree9c7e5eff44037394c5232adcac7a4cbd26b3132d
parentHandle 904 (ERR_SASLFAIL) in sasl.py (diff)
signature
In handling raw.part, remove_channel after calling self.part instead of before
-rw-r--r--IRCLineHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index 25cf38b3..996c837f 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -268,9 +268,9 @@ class LineHandler(object):
if not len(user.channels):
event["server"].remove_user(user)
else:
- event["server"].remove_channel(channel)
self.events.on("self.part").call(channel=channel,
reason=reason, server=event["server"])
+ event["server"].remove_channel(channel)
# unknown command sent by us, oops!
def handle_421(self, event):