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

Commit 4293a0b

Browse files
committed
protocol/elemental-ircd: Track services logins
1 parent a68422b commit 4293a0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/protocol/elemental-ircd.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def initModule(cod):
4444
cod.s2scommands["BMASK"] = [handleBMASK]
4545
cod.s2scommands["MODE"] = [handleMODE]
4646
cod.s2scommands["CHGHOST"] = [handleCHGHOST]
47+
cod.s2scommands["ENCAP"] = [encapSU]
4748
cod.s2scommands["WHOIS"] = [handleWHOIS]
4849
cod.s2scommands["JOIN"] = [handleJOIN]
4950
cod.s2scommands["SID"] = [handleSID]
@@ -121,6 +122,13 @@ def nullCommand(cod, line):
121122

122123
pass
123124

125+
def encapSU(cod, line):
126+
#<<< :00A ENCAP * SU 376100000 :ShadowNET
127+
if line.args[-1] == line.args[2]:
128+
cod.clients[line.args[2]].login = "*"
129+
else:
130+
cod.clients[line.args[2]].login = line.args[-1]
131+
124132
def handleEUID(cod, line):
125133
"""
126134
Listens for EUID commands and adds information about remote clients

0 commit comments

Comments
 (0)