From 75c4f573e1226d6deb294f647fb8077c51f5aa10 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 3 Jul 2012 00:26:12 +0200 Subject: [PATCH] Call user cleanup function when client is disconnected --- ircd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd.py b/ircd.py index 62b3565..68b53db 100755 --- a/ircd.py +++ b/ircd.py @@ -121,7 +121,8 @@ class client: self.user.process_data(data) def end(self): - pass + if self.user is not None: + self.user.end() class channel: presences = {}