Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

Commit 2b95129

Browse files
committed
Improve user tracking.
1 parent d88818d commit 2b95129

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/protocol/charybdis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def handleEUID(cod, line):
141141
line.args[-1])
142142

143143
cod.clients[client.uid] = client
144+
cod.servers[client.uid[:3]].clients.append(client)
144145

145146
cod.runHooks("newclient", [client])
146147

@@ -150,6 +151,7 @@ def handleQUIT(cod, line):
150151
"""
151152

152153
client = cod.clients[line.source]
154+
cod.servers[client.uid[:3]].clients.remove(client)
153155

154156
for chanuser in client.channels:
155157
try:

0 commit comments

Comments
 (0)