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

Commit 4bbf6bf

Browse files
committed
Fix tracking of servers at burst.
1 parent 5c41624 commit 4bbf6bf

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

modules/protocol/charybdis.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ def initModule(cod):
6060
cod.s2scommands["ERROR"] = [handleERROR]
6161
cod.s2scommands["SQUIT"] = [handleSQUIT]
6262
cod.s2scommands["TMODE"] = [handleTMODE]
63-
cod.s2scommands["PASS"] = [handlePASS]
64-
cod.s2scommands["SERVER"] = [handleSERVER]
63+
cod.s2scommands["SID"] = [handleSID]
6564

6665
cod.s2scommands["PRIVMSG"].append(handlePRIVMSG)
6766

@@ -538,15 +537,5 @@ def handlePING(cod, line):
538537
(cod.sid, cod.config["me"]["name"],
539538
line.args[-1]))
540539

541-
def handlePASS(cod, line):
542-
global sidhack
543-
544-
sidhack = line.args[-1]
545-
546-
def handleSERVER(cod, line):
547-
global sidhack
548-
549-
servername, hops, real = line.args
550-
551-
cod.servers[sidhack] = Server(sidhack, servername, hops, real)
552-
540+
def handleSID(cod, line):
541+
cod.servers[line.args[2]] = Server(line.args[2], line.args[0], line.args[1])

0 commit comments

Comments
 (0)