Block messages from certain players?

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Block messages from certain players?

Postby Coke1984 » Sat Oct 07, 2006 7:49 pm

Hi there,

do you know any way to block chat-messages from certain players?
In this particular case I want to dissable any messages from a moron calling himsef "XSAX LTU" (maybe some of you have stumbled across this idiot too by now).
This player is known for insuting anyone better then him (and that's a whole bunch of ppl), killing teammates and so on... He's already banned on several servers, as he's using a static ip, but unfortunately not on all servers... and he's starting to annoy me :)
Coke1984
Member
 
Posts: 18
Joined: Tue Jun 13, 2006 11:53 am
Location: Essen, Germany

Postby divVerent » Sat Oct 07, 2006 10:13 pm

No, that is not supported yet and wouldn't even be easy to add as the clients can't see the difference betwee chat messages and other messages. If you don't care if you accidentally also remove other messages, you could try implementing some filtering in Con_PrintToHistory in console.c (note that in this function, txt is the whole line, so you could check for some patterns using strncmp and just "return" if you don't want to show that line).

BTW, he's been banned from my server not for the insults, but for repeated teamkilling in CTF games and ignoring messages from others. I don't care if people insult each other - after all, if you play an online game or chat on IRC, you have to get used to it anyway. Plus, I don't think XSAX's insults are going too far. He doesn't exactly have a large "insult vocabulary", all he can do is call people "fag" and "gay))". Not exactly things that could hurt a player's feelings or reputation, just stupid stuff that 14 years old guys say to "act cool". That alone wouldn't justify a ban IMHO.

XSAX is the only player I ever banned, and I've kicked two or three others. As for his teamkilling: In spectator mode, I saw he sometimes shoots at his own guys and sometimes the enemy - whoever he sees first. He doesn't teamkill on purpose, he does not know about that team concept and ignores any hints/explanations by others as well as the TEAM MATE sign or the mirror damage.

What I want to tell you with this: I wouldn't have banned XSAX if my server wouldn't primarily run CTF. I think I have every right to call him an immature idiot - but he isn't worse than that. However, such a teamkiller really makes CTF games bad - like, people teamswitching away so they don't have to play in his team or even leaving the server because of him.

But in the end, it's up to server admins to ban him or not. On a Linux server, you can ban someone's IP by entering this command as root:

Code: Select all
iptables -I INPUT 1 --source the.guy.s.ip -p udp --dport 26000 -j DROP


You can make this permanent by adding that line to a bootup script like /etc/rc.local.

After that, the player's connection will time out (if he's still connected), and from then, he won't even see your server in the server browser again.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby ai » Sun Oct 08, 2006 5:45 am

Handy code. I wonder how it works underneath the hood. Not that I would understand it. Maybe in the future I will. I am studying math for game programming. ^_^
ai
Forum addon
 
Posts: 2131
Joined: Sun Mar 05, 2006 3:54 pm
Location: Behind you

Postby Coke1984 » Sun Oct 08, 2006 7:13 am

divVerent wrote:As for his teamkilling: In spectator mode, I saw he sometimes shoots at his own guys and sometimes the enemy - whoever he sees first. He doesn't teamkill on purpose, he does not know about that team concept and ignores any hints/explanations by others as well as the TEAM MATE sign or the mirror damage.


Are you sure about that? Just 2 days ago I've been playing on Herforst when he joined the opposing team and started shooting at anything moving. When I killed him for about 5 or 6 times, he started his usual monologue and changed teams, and then tried to chase me. (No need to mention that he shot all other players on our team as well...)
When he was autobalanced back to his old team, he changed back about 3 times until he gave up... And that's pretty much on purpouse I'd say.

To the swearing: I usualy don't care about this, as most other players don't, but he's being a constant pain in the ass :roll:
Coke1984
Member
 
Posts: 18
Joined: Tue Jun 13, 2006 11:53 am
Location: Essen, Germany

Postby divVerent » Sun Oct 08, 2006 7:46 am

Oh, haven't seen that from him yet...

still, I see no reason to ban him from DM servers. He doesn't play well at all, but let him have his fun too. And if he tries to insult people - just ignore him. With his weak insults, he'd lose any sword fight anyway ;) (well, probably XSAX is too young to know Monkey Island 1, though...)

As for an /ignore-like command, we will discuss this in the developer channel. But I doubt we want that, as we know how /ignore ends up in IRC: the ignored one talks to someone else and you only see half of the text and have no idea what's going on.

But of course you are free to add this to your DP engine if you really want it.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Coke1984 » Sun Oct 08, 2006 11:51 am

Monkey 1? Damn, you got me now I'm getting nostalgic :wink:

http://www.wischnewski.eu/fun/monkey2.swf
Coke1984
Member
 
Posts: 18
Joined: Tue Jun 13, 2006 11:53 am
Location: Essen, Germany


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron