Scrap/Random Hacks/Banblocker Codee.txt
Richard Wright 5f35433c9b Scrap codes
2015-03-01 17:03:11 +00:00

14 lines
492 B
Text

SendUpdateBanBlocker = base.localAvatar.sendUpdate
def sendUpdateHook(fieldName, args=[], sendToId=base.localAvatar.doId):
if fieldName == "logSuspiciousEvent":
pass
else:
aSendUpdate(fieldName, args)
def keepConnection():
pass
def denyDisconnectDetails(newCode, newMsg):
pass
base.cr.lostConnection = keepConnection
base.cr.disconnect = keepConnection
base.localAvatar.sendUpdate = sendUpdateHook
base.cr.launcher.setDisconnectDetails = denyDisconnectDetails