Block a word en send to a channel with warning.

These are old archives. They are kept for historic purposes only.
Post Reply
JimmyBoom
Posts: 36
Joined: Mon Oct 02, 2006 2:09 pm

Block a word en send to a channel with warning.

Post 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
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Post by nate »

Sounds like they were simply using a spamfilter perhaps?

http://www.vulnscan.org/UnrealIRCd/unre ... spamfilter
JimmyBoom
Posts: 36
Joined: Mon Oct 02, 2006 2:09 pm

Post 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.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
JimmyBoom
Posts: 36
Joined: Mon Oct 02, 2006 2:09 pm

Post 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?
JimmyBoom
Posts: 36
Joined: Mon Oct 02, 2006 2:09 pm

Post 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?
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

You didnt have the apropriate snomask.

See /helpop ?snomasks for a list

Or just type "/mode YOURNICK +s +S" (capital S)
JimmyBoom
Posts: 36
Joined: Mon Oct 02, 2006 2:09 pm

Post 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.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Snomasks need to be put in snomask-on-oper not modes-on-oper.
JimmyBoom
Posts: 36
Joined: Mon Oct 02, 2006 2:09 pm

Post 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.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Strange, I can... ;p
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Post Reply