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)
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)
def HANDLE_SID_FRIENDSADD(self, d): hook.call_nowait('after-handle_sid_friendsadd', self, d)
def HANDLE_SID_FLOODDETECTED(self, d): hook.call_nowait('after-handle_sid_flooddetected', self, d)
def HANDLE_SID_FRIENDSLIST(self, d): hook.call_nowait('after-handle_sid_friendslist', self, d)
def HANDLE_SID_FRIENDSUPDATE(self, d): hook.call_nowait('after-handle_sid_friendsupdate', self, d)
def HANDLE_SID_CLANMEMBERREMOVED(self, d): hook.call_nowait('after-handle_sid_clanmemberremoved', self, d)
def HANDLE_SID_CLANINVITATION(self, d): hook.call_nowait('after-handle_sid_claninvitation', self, d)
def HANDLE_SID_MESSAGEBOX(self, d): hook.call_nowait('after-handle_sid_messagebox', self, d)
def HANDLE_SID_CLANMEMBERSTATUSCHANGE(self, d): hook.call_nowait('after-handle_sid_clanmemberstatuschange', self, d)
def HANDLE_SID_CLANMEMBERLIST(self, d): hook.call_nowait('after-handle_sid_clanmemberlist', self, d)
def HANDLE_SID_CLANINFO(self, d): hook.call_nowait('after-handle_sid_claninfo', self, d)
def HANDLE_SID_CHATEVENT(self, d): hook.call_nowait('after-handle_sid_chatevent', self, d) return