Block a word en send to a channel with warning.
Block a word en send to a channel with warning.
Hello,
I have a question that i couldn't find with the search button so.
I saw on one network when you say in a private of someone 'cam'
that it will be messaged to a channel.
Like this:
<Jimmy> Cam
Your message is sent to IRCops. Reason: No camchat!
At that moment in the channel '#spamcam':
Jimmy said cam in name's private.
Jimmy is on #channel1 #channel2 etc.
This is not for spying in private messages only when they say cam in a private conversation.
How can i get something like that too?
Thx in advance
Jimmy Boom
I have a question that i couldn't find with the search button so.
I saw on one network when you say in a private of someone 'cam'
that it will be messaged to a channel.
Like this:
<Jimmy> Cam
Your message is sent to IRCops. Reason: No camchat!
At that moment in the channel '#spamcam':
Jimmy said cam in name's private.
Jimmy is on #channel1 #channel2 etc.
This is not for spying in private messages only when they say cam in a private conversation.
How can i get something like that too?
Thx in advance
Jimmy Boom
Sounds like they were simply using a spamfilter perhaps?
http://www.vulnscan.org/UnrealIRCd/unre ... spamfilter
http://www.vulnscan.org/UnrealIRCd/unre ... spamfilter
Ok, but that is only in the global spamfilter, if you set it in spamfilter.conf it's just local and doesn't show a message?Jobe1986 wrote:You could always use a bot such as an eggdrop to pick up the spamfilter match message and relay it to a channel.
Atleast if i set it in spamfilter.conf i don't see a message.
EDIT:
Does someone maybe know how to script that?
I'm kind a newb with MSL?
Yeah, i had this:Jobe1986 wrote:You could always use a bot such as an eggdrop to pick up the spamfilter match message and relay it to a channel.
spamfilter {
regex "cam";
target { private; };
reason "Cam-dating is not allowed on this server!";
action warn;
};
Then it says:
PRIVMSG Command processed, but a copy has been sent to ircops for evaluation (anti-spam) purposes. [Cam-dating is not allowed on this server!]
But the funny thing is..
I did not get a message from the server.
How is that possible?
It works, thx.Jobe1986 wrote:You didnt have the apropriate snomask.
See /helpop ?snomasks for a list
Or just type "/mode YOURNICK +s +S" (capital S)
But i have a question, i want to make that mode +S permanent to all opers so i have to add it to the config.
Which option must i use?
modes-on-oper "+xwgsS";
or
modes-on-oper "+xwgs+S";
?
Thx in advance.