@@ -35,6 +35,11 @@ def initModule(cod):
3535 cod .join = join
3636 cod .burstClient = burstClient
3737
38+ cod .loadmod ("help" )
39+ cod .loadmod ("admin" )
40+
41+ cod .terminator = "\n "
42+
3843 cod .s2scommands ["UID" ] = [handleUID ]
3944 cod .s2scommands ["QUIT" ] = [handleQUIT ]
4045 cod .s2scommands ["FJOIN" ] = [handleSJOIN ]
@@ -87,7 +92,8 @@ def join(self, channel, client=None):
8792
8893 channel = self .channels [channel ]
8994
90- self .sendLine (":%s JOIN %s %s" % (client .uid , channel .name , channel .ts ))
95+ self .sendLine (":%s FJOIN %s %s + ,%s" % (cod .sid , channel .name , channel .ts ,
96+ client .uid ))
9197
9298def burstClient (cod , nick , user , host , real , uid = None ):
9399 if uid is None :
@@ -101,12 +107,13 @@ def login(cod):
101107 #>> SERVER services-dev.chatspike.net password 0 666 :Description here
102108 cod .sendLine ("SERVER %s %s 0 %s :%s" %
103109 (cod .config ["me" ]["name" ], cod .config ["uplink" ]["pass" ],
104- cod .config [ "uplink" ][ " sid" ] , cod .config ["me" ]["desc" ]))
110+ cod .sid , cod .config ["me" ]["desc" ]))
105111 cod .sendLine ("CAPAB START 1202" )
106112 cod .sendLine ("CAPAB CAPABILITIES :PROTOCOL=1202" )
107113 cod .sendLine ("CAPAB END" )
108- cod .sendLine (":%s BURST " % cod .config [ "uplink" ][ " sid" ] + str (int (time .time ())))
114+ cod .sendLine (":%s BURST " % cod .sid + str (int (time .time ())))
109115 cod .sendLine ("ENDBURST" )
116+ cod .bursted = True
110117
111118def nullCommand (cod , line ):
112119 pass
@@ -178,7 +185,7 @@ def handleMODE(cod, line):
178185 cod .clients [source ].isOper = False
179186
180187def handleCHGHOST (cod , line ):
181- cod .clients [line .args [0 ].host = line .args [1 ]
188+ cod .clients [line .args [0 ]] .host = line .args [1 ]
182189
183190def handleWHOIS (cod , line ):
184191 service = line .args [0 ]
0 commit comments