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

Commit 976b6a8

Browse files
committed
protocol/inspircd: Track services logins
1 parent b5d8198 commit 976b6a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/protocol/inspircd.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def initModule(cod):
5050
cod.s2scommands["SERVER"] = [handleSERVER]
5151
cod.s2scommands["ENDBURST"] = [handleENDBURST]
5252
cod.s2scommands["OPERTYPE"] = [handleOPERTYPE]
53+
cod.s2scommands["METADATA"] = [handleMETADATA]
5354

5455
cod.s2scommands["PRIVMSG"].append(handlePRIVMSG)
5556

@@ -132,6 +133,15 @@ def nullCommand(cod, line):
132133
def handleSERVER(cod, line):
133134
cod.sendLine(":%s BURST &d" % (cod.config["uplink"]["sid"], time.time()))
134135

136+
def handleMETADATA(cod, line):
137+
#<<< :3AX METADATA 818AAAAAB accountname :Xe
138+
#<<< :3AX METADATA 818AAAAAB accountname :
139+
140+
if line.args[-1] == "":
141+
line.args[-1] = "*"
142+
143+
cod.clients[line.args[2]].login = line.args[-1]
144+
135145
def handleUID(cod, line):
136146
#UID <uid> <age> <nick> <host> <dhost> <ident> <ip> <signon> +<modes> :realname
137147
# 0 1 2 3 4 5 6 7 8 9

0 commit comments

Comments
 (0)