This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

spamfilter notice output

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

spamfilter notice output

Post by blake »

Can someone help with this my eggdrop recieves spamfilter notices id like for it to be able to output the spam notices it recieves to a channel #services

This is how it recieves the notice

-irc.cwukchat.com- [Spamfilter] Malphas250!Malphas@customer7146.103.kt.cust.t-mobile.co.uk matches filter 'cash': [PRIVMSG Gateway: 'wads of cash'] [Spam/Advertising]

Is what id like it to do is something along these lines privmsg #services
with the output of the above notice it has recieved

This will then stop me having to set snomasks and admin being able to see it more clearly rather then it be showed in their status on their client
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Try this:

Code: Select all


bind notc - "*" server:notice

proc server:notice {nick uhost handle text dest} {

	if {"irc.cwukchat.com"=="$nick"} {

		putserv "privmsg #services :$text"
	  }	
}

Obviously, I could not test it exactly as it will be, on your server, etc.
However, I played around with it for a few minutes, on a test bot of mine - using incoming notices from NickServ as it responded to various 'help' messages I would have the bot send it.
Like that - it worked.


I hope this helps
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

Will this send all notices it gets or just spam filter notices i only need it to pick up spam notices

Thank you ill give it a try
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

blake wrote:Will this send all notices it gets or just spam filter notices i only need it to pick up spam notices
Only notices from irc.cwukchat.com .
Thank you ill give it a try
Good.
If you get this much working, and still need it filtered more, perhaps we can.
:)
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

Dont seem to work this is how it is recieving the message/notice on the party line

Code: Select all

[01:48] <Gateway> [00:48] -NOTICE- [Spamfilter] Malphas912!Malphas@customer11741.101.kt.cust.t-mobile.co.uk matches filter 'cash': [PRIVMSG #Friendly: 'cash'] [Spam/Advertising]
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

blake wrote:Dont seem to work this is how it is recieving the message/notice on the party line

Code: Select all

[01:48] <Gateway> [00:48] -NOTICE- [Spamfilter] Malphas912!Malphas@customer11741.101.kt.cust.t-mobile.co.uk matches filter 'cash': [PRIVMSG #Friendly: 'cash'] [Spam/Advertising]
?
In a previous post, you'd said:
This is how it recieves the notice

-irc.cwukchat.com- [Spamfilter] Malphas250!Malphas@customer7146.103.kt.cust.t-mobile.co.uk matches filter 'cash': [PRIVMSG Gateway: 'wads of cash'] [Spam/Advertising]
Which is it?

Need to know 'who' the notice is from.
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

The top one is how the notice is showing on the bots partyline

The second one is how i recieve it on mirc the top one in your last post is how the bot it recieving it im assuming as that is what is showing in the bots partyline

It will have to be specifick to the text [spamfilter] as it gets other notices such as connection notices and global notices
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Be adviced that the NOTC binding will not trigger on server notices. In these cases, you'll have to use the RAW binding.
NML_375
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

blake wrote:The top one is how the notice is showing on the bots partyline

The second one is how i recieve it on mirc the top one in your last post is how the bot it recieving it im assuming as that is what is showing in the bots partyline

It will have to be specifick to the text [spamfilter] as it gets other notices such as connection notices and global notices
Sorry... without being able to test it for myself, I realize that this might be an exercise in futility.
Not your fault. I'm sorry if I mis-lead you.

Further, that may be a server notice. If so, the bind that I'm using, according to the docs, won't work.
So the next thing that comes to mind, is to trap for raw numerics - and I'd really need to be able to test for myself, to experiment my way through that.

Perhaps if our posts here have attracted the attention of someone else that is already familiar with what you've described - perhaps they could write the script for you without being able to test it for themselves.
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

No probs thanks for your help if it helps any i can provide you with a test server to test it on that will opers
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

blake wrote:No probs thanks for your help if it helps any i can provide you with a test server to test it on that will opers
Sure... I'll give it a shot. :)

If you can provide me with an address for an IRC server - just like the one you are using - that I can log into 24/7, to experiment with this that would be good.
b
blake
Master
Posts: 201
Joined: Mon Feb 23, 2009 9:42 am
Contact:

Post by blake »

willyw wrote:
blake wrote:No probs thanks for your help if it helps any i can provide you with a test server to test it on that will opers
Sure... I'll give it a shot. :)

If you can provide me with an address for an IRC server - just like the one you are using - that I can log into 24/7, to experiment with this that would be good.
irc server add saturn.cwukchat.com
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Code: Select all


bind raw - notice spam_notice


proc spam_notice {from key text} {

   if {"$from"!="saturn.cwukchat.com"} {
		return 0
       }

   if {"[lindex [split $text] 1]"==":\[Spamfilter\]"} {
	putserv "privmsg #services : [join [lrange [split $text] 1 end]]"
      }

}

That's a no-frills beginning. :)

You and I know that we've experimented with it some, on your server.
Posting this here, so that anyone else reading along knows that the project just did not fizzle out.... and perhaps someone else will have further input too.
Post Reply