Code: Select all
bind notc - "*" server:notice
proc server:notice {nick uhost handle text dest} {
if {"irc.cwukchat.com"=="$nick"} {
putserv "privmsg #services :$text"
}
}
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]
?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]
Which is it?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]
Sorry... without being able to test it for myself, I realize that this might be an exercise in futility.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
Sure... I'll give it a shot.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
irc server add saturn.cwukchat.comwillyw wrote:Sure... I'll give it a shot.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
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.
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]]"
}
}