| View previous topic :: View next topic |
| Author |
Message |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Fri Aug 27, 2010 11:27 am Post subject: spamfilter notice output |
|
|
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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Aug 27, 2010 1:58 pm Post subject: |
|
|
Try this:
| Code: |
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 |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Fri Aug 27, 2010 5:58 pm Post subject: |
|
|
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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Aug 27, 2010 8:21 pm Post subject: |
|
|
| 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 .
| Quote: |
Thank you ill give it a try |
Good.
If you get this much working, and still need it filtered more, perhaps we can.
 |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Fri Aug 27, 2010 8:49 pm Post subject: |
|
|
Dont seem to work this is how it is recieving the message/notice on the party line
| Code: | | [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] |
_________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Aug 27, 2010 9:06 pm Post subject: |
|
|
| blake wrote: | Dont seem to work this is how it is recieving the message/notice on the party line
| Code: | | [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:
| Quote: |
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. |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Fri Aug 27, 2010 9:12 pm Post subject: |
|
|
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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Aug 27, 2010 9:24 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Fri Aug 27, 2010 9:32 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Sat Aug 28, 2010 7:15 am Post subject: |
|
|
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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Aug 28, 2010 10:04 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
blake Master
Joined: 23 Feb 2009 Posts: 201
|
Posted: Sat Aug 28, 2010 4:32 pm Post subject: |
|
|
| 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 _________________ Blake
UKEasyHosting UKStormWatch |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Mon Aug 30, 2010 12:13 pm Post subject: |
|
|
| Code: |
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. |
|
| Back to top |
|
 |
|