Page 1 of 1

Block a word en send to a channel with warning.

Posted: Wed Jun 20, 2007 6:32 pm
by JimmyBoom
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

Posted: Wed Jun 20, 2007 6:57 pm
by nate
Sounds like they were simply using a spamfilter perhaps?

http://www.vulnscan.org/UnrealIRCd/unre ... spamfilter

Posted: Wed Jun 20, 2007 7:13 pm
by JimmyBoom
Not really, it can block the word indeed and send a message to the person.
But not a message to the channel like i described.

Posted: Wed Jun 20, 2007 8:48 pm
by Jobe
You could always use a bot such as an eggdrop to pick up the spamfilter match message and relay it to a channel.

Posted: Thu Jun 21, 2007 5:36 am
by JimmyBoom
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.
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?

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?

Posted: Thu Jun 21, 2007 4:29 pm
by JimmyBoom
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.
Yeah, i had this:

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?

Posted: Thu Jun 21, 2007 6:46 pm
by Jobe
You didnt have the apropriate snomask.

See /helpop ?snomasks for a list

Or just type "/mode YOURNICK +s +S" (capital S)

Posted: Thu Jun 21, 2007 7:22 pm
by JimmyBoom
Jobe1986 wrote:You didnt have the apropriate snomask.

See /helpop ?snomasks for a list

Or just type "/mode YOURNICK +s +S" (capital S)
It works, thx.

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.

Posted: Thu Jun 21, 2007 9:19 pm
by Jobe
Snomasks need to be put in snomask-on-oper not modes-on-oper.

Posted: Fri Jun 22, 2007 11:26 am
by JimmyBoom
Jobe1986 wrote:Snomasks need to be put in snomask-on-oper not modes-on-oper.
Uh i can't find snomask-on-oper.

Posted: Fri Jun 22, 2007 11:35 am
by Dukat
Strange, I can... ;p