예제 #1
0
 def HANDLE_SID_ENTERCHAT(self, d):
     hook.call_wait('before-handle_sid_enterchat', self, d)
     if b'#' in d:
         atomic_debug('Warning: Account already logged in.')
     p = bnetprotocol.SEND_SID_JOINCHANNEL(self.firstChannel)
     self.send_packet(p)
     self.floodControl = True
     hook.call_nowait('after-handle_sid_enterchat', self, d)
예제 #2
0
 def HANDLE_SID_AUTH_ACCOUNTLOGONPROOF(self, d):
     hook.call_wait('before-handle_sid_accountlogonproof', self, d)
     if not d:
         atomic_debug('Logon proof rejected.')
         self.socket.close()
         return
     hook.call_wait('before-handle_sid_accountlogonproof', self, d)
     #p = bnetprotocol.SEND_SID_NETGAMEPORT(self.hostPort)
     #self.send_packet(p)
     p = bnetprotocol.SEND_SID_ENTERCHAT()
     self.send_packet(p)
     hook.call_nowait('after-handle_sid_accountlogonproof', self, d)
예제 #3
0
 def HANDLE_SID_FRIENDSADD(self, d):
     hook.call_nowait('after-handle_sid_friendsadd', self, d)
예제 #4
0
 def HANDLE_SID_FLOODDETECTED(self, d):
     hook.call_nowait('after-handle_sid_flooddetected', self, d)
예제 #5
0
 def HANDLE_SID_FRIENDSLIST(self, d):
     hook.call_nowait('after-handle_sid_friendslist', self, d)
예제 #6
0
 def HANDLE_SID_FRIENDSUPDATE(self, d):
     hook.call_nowait('after-handle_sid_friendsupdate', self, d)
예제 #7
0
 def HANDLE_SID_CLANMEMBERREMOVED(self, d):
     hook.call_nowait('after-handle_sid_clanmemberremoved', self, d)
예제 #8
0
 def HANDLE_SID_CLANINVITATION(self, d):
     hook.call_nowait('after-handle_sid_claninvitation', self, d)
예제 #9
0
 def HANDLE_SID_MESSAGEBOX(self, d):
     hook.call_nowait('after-handle_sid_messagebox', self, d)
예제 #10
0
 def HANDLE_SID_CLANMEMBERSTATUSCHANGE(self, d):
     hook.call_nowait('after-handle_sid_clanmemberstatuschange', self, d)
예제 #11
0
 def HANDLE_SID_CLANMEMBERLIST(self, d):
     hook.call_nowait('after-handle_sid_clanmemberlist', self, d)
예제 #12
0
 def HANDLE_SID_CLANINFO(self, d):
     hook.call_nowait('after-handle_sid_claninfo', self, d)
예제 #13
0
 def HANDLE_SID_CHATEVENT(self, d):
     hook.call_nowait('after-handle_sid_chatevent', self, d)
     return