Blockland Forums > Modification Help
Blocking Silent Connections
Space Guy:
Well if all they can do is listen to the chat (and not actually harm the server etc.) then you could make your own servercmdMessageSent() function.
MegaScientifical:
--- Quote from: ZSNO on August 29, 2010, 03:33:48 PM ---you can also join passworded servers that you want to spy on that your friend gave you the password too :D
--- End quote ---
Hmm. Is that the %int in my version? The password? Because I haven't been able to check that. As I said, I've had someone else host and check stuff for me, and we didn't try passwords since you know they block this anyway.
--- Quote from: Space Guy on August 29, 2010, 04:15:37 PM ---Well if all they can do is listen to the chat (and not actually harm the server etc.) then you could make your own servercmdMessageSent() function.
--- End quote ---
Well, it'd be more like modifying the messageAll directly, but I'd rather not mess with that. People who mess with it break my clientside scripts. :cookieMonster:
Besides that, the extent of what they can do isn't fully known. You just need to study up on what connections interact with.
Chrono:
--- Quote from: Space Guy on August 29, 2010, 04:15:37 PM ---Well if all they can do is listen to the chat (and not actually harm the server etc.) then you could make your own servercmdMessageSent() function.
--- End quote ---
Sadly that breaks other useful mods.
I'm working on something like this. Been trying before the topic was even around.
Usually ends in broken server.
My latest version, I can join normally, then prevented spy, but when I tried to join normally again, it failed and crashed.
MegaScientifical:
Meh. I've been trying to work with Bauk to get this working, but most of the time he gets distracted. When we did work on it, he started extending the code suddenly and broke it. Last we mentioned it, he said he simply disabled it. :panda:
Chrono knows how to know it's a silent connection, right? I want to be sure you aren't using some anterior method.
Space Guy:
--- Quote from: Chrono on August 29, 2010, 04:41:43 PM ---Sadly that breaks other useful mods.
I'm working on something like this. Been trying before the topic was even around.
Usually ends in broken server.
My latest version, I can join normally, then prevented spy, but when I tried to join normally again, it failed and crashed.
--- End quote ---
If you directly overwrite the function rather than making another package then every other mod that packages it will work fine, provided you add all the things like flood protection/ML tags filtering.