Raised This Month: $ Target: $400
 0% 

Chat Filter v0.4 (2/27)


Post New Thread Reply   
 
Thread Tools Display Modes
dann
Senior Member
Join Date: Nov 2007
Old 05-22-2008 , 23:34   Re: Chat Filter v0.1
Reply With Quote #11

does this work on sentences or just if they type a single word?
dann is offline
chundo
Senior Member
Join Date: May 2008
Old 05-23-2008 , 02:40   Re: Chat Filter v0.1
Reply With Quote #12

Sentences should work fine too. Although I just realized that the comparison IS case sensitive, so be aware that capitalization has to be exact for it to match. I'll fix that in the next day or two.
chundo is offline
imported_Anth0ny
Senior Member
Join Date: Jan 2005
Location: Saturn
Old 05-23-2008 , 04:00   Re: Chat Filter v0.1
Reply With Quote #13

nice work! =)
wery nice replacement for swear_replacement plugin.
__________________
aka Mad.Eagle
Creator\Owner\Admin of
www.megatron.ws
imported_Anth0ny is offline
Send a message via ICQ to imported_Anth0ny
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 05-23-2008 , 04:29   Re: Chat Filter v0.1
Reply With Quote #14

Is there any way to make a new option for you can have it replace the actual word with another word, but keep the person's sentence? Instead of it writing something new entirely? Know what I mean?

Like if someone said "What the fuck" and your censored word was "fuck", then they would say "What the (replacement)" instead of "(replacement)"

see what i mean?

if not that's alright. but just an idea
__________________
FunTF2Server is offline
Noobtastic
Member
Join Date: Nov 2007
Old 05-23-2008 , 09:36   Re: Chat Filter v0.1
Reply With Quote #15

I don't think it's supposed to work like this, right?

http://jasper.onlydutch.com/screenshots/chat.jpg

It keeps showing the 'bad word', but just copies it and censors that one.
Noobtastic is offline
chundo
Senior Member
Join Date: May 2008
Old 05-23-2008 , 11:49   Re: Chat Filter v0.1
Reply With Quote #16

FunTF2Server: good idea, I'll add another replacement mode.

Noobtastic: hmm, it doesn't do that here. Maybe it's a bug with chat from dead users - does it happen when you're alive? If so, do you have any other chat-related plugins running?
chundo is offline
Noobtastic
Member
Join Date: Nov 2007
Old 05-23-2008 , 12:21   Re: Chat Filter v0.1
Reply With Quote #17

Quote:
Originally Posted by chundo View Post
Noobtastic: hmm, it doesn't do that here. Maybe it's a bug with chat from dead users - does it happen when you're alive? If so, do you have any other chat-related plugins running?
It happens to alive players as well, I'll check if other chat plugins are interfering.
Noobtastic is offline
chundo
Senior Member
Join Date: May 2008
Old 05-23-2008 , 12:38   Re: Chat Filter v0.1
Reply With Quote #18

After looking at the code again I'd bet that it's a conflict with another plugin. Unfortunately the "player_say" event doesn't work as I would think (bug report here), so any chat modification has to be done through hooking the "say" and "say_team" commands and then recreating the chat message.

I could definitely see this causing chat duplication between two plugins - if that's the case let me know which one it is and I'll see where the problem is happening.

The other option of course is that it's a CS:S issue - I've only tested on TF2, but there shouldn't be any reason it wouldn't work for all Source games.
chundo is offline
Noobtastic
Member
Join Date: Nov 2007
Old 05-23-2008 , 15:49   Re: Chat Filter v0.1
Reply With Quote #19

I think it IS game related. I just checked the plugin on a server running these plugins:

Quote:
01 "Admin File Reader" (1.0.0.1946) by AlliedModders LLC
02 "Country Filter" (1.1.1) by Knagg0
03 "SourceBans" by SteamFriends Development Team
04 "Simple warmod" (1.0.0.0) by Noobtastic
05 "Chat Filter" (0.1) by chundo
And it still showed the bad word first, and the censor second.
Noobtastic is offline
chundo
Senior Member
Join Date: May 2008
Old 05-23-2008 , 16:54   Re: Chat Filter v0.1
Reply With Quote #20

I'll try to get CS:S and test it out, thanks.
chundo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode