@@ -40,7 +40,7 @@ def initModule(cod):
4040 cod .s2scommands ["FJOIN" ] = [handleSJOIN ]
4141 cod .s2scommands ["NICK" ] = [handleNICK ]
4242 cod .s2scommands ["MODE" ] = [handleMODE ]
43- cod .s2scommands ["CHGHOST " ] = [handleCHGHOST ]
43+ cod .s2scommands ["FHOST " ] = [handleCHGHOST ]
4444 cod .s2scommands ["WHOIS" ] = [handleWHOIS ]
4545 cod .s2scommands ["JOIN" ] = [handleJOIN ]
4646 cod .s2scommands ["SID" ] = [handleSID ]
@@ -49,6 +49,7 @@ def initModule(cod):
4949 cod .s2scommands ["PING" ] = [handlePING ]
5050 cod .s2scommands ["SERVER" ] = [handleSERVER ]
5151 cod .s2scommands ["ENDBURST" ] = [handleENDBURST ]
52+ cod .s2scommands ["OPERTYPE" ] = [handleOPERTYPE ]
5253
5354 cod .s2scommands ["PRIVMSG" ].append (handlePRIVMSG )
5455
@@ -60,7 +61,7 @@ def destroyModule(cod):
6061 del cod .s2scommands ["FJOIN" ]
6162 del cod .s2scommands ["NICK" ]
6263 del cod .s2scommands ["MODE" ]
63- del cod .s2scommands ["CHGHOST " ]
64+ del cod .s2scommands ["FHOST " ]
6465 del cod .s2scommands ["WHOIS" ]
6566 del cod .s2scommands ["NOTICE" ]
6667 del cod .s2scommands ["JOIN" ]
@@ -71,6 +72,7 @@ def destroyModule(cod):
7172 del cod .s2scommands ["PING" ]
7273 del cod .s2scommands ["SERVER" ]
7374 del cod .s2scommands ["ENDBURST" ]
75+ del cod .s2scommands ["OPERTYPE" ]
7476
7577 cod .s2scommands ["PRIVMSG" ].remove (handlePRIVMSG )
7678
@@ -89,6 +91,8 @@ def join(cod, channel, client=None):
8991
9092 channel = cod .channels [channel ]
9193
94+ client .channels .append (channel .name )
95+
9296 cod .sendLine (":%s FJOIN %s %s + ,%s" % (cod .sid , channel .name , channel .ts ,
9397 client .uid ))
9498
@@ -135,6 +139,10 @@ def handleUID(cod, line):
135139
136140 cod .clients [client .uid ] = client
137141
142+ def handleOPERTYPE (cod , line ):
143+ print line .source , "tried to be an oper"
144+ cod .clients [line .source ].isOper = True
145+
138146def handleQUIT (cod , line ):
139147 cod .clients .pop (source )
140148
0 commit comments