Code: Select all
bind notc O * oper:notice
proc oper:notice {nick uhost hand text dest} {
if {$dest != ""} return
putserv "PRIVMSG #opers :$text"
}
Code: Select all
bind raw * notice oper:notice
proc oper:notice {from keyword text} {
putserv "PRIVMSG #opers :$text"
}
Code: Select all
bind raw * oper:notice
Code: Select all
bind raw * notice oper:notice
I think this way would be more efficent as it will post all commands that are sent to operservIt would be best to relay anything from #services that says operserv:
for example:
[13:57] <Global> LOGUSERS: mibbot_stats (mibbot_sta@HIDDEN.com) (Mibbit net stats bot) left the network (Mystic.demonirc.net).
[13:57] <Global> OperServ: Gemster: oper list
[13:57] <Global> NickServ: Master-Sima-Yi!Mibbit@HIDDEN.nl identified for nick Master-Sima-Yi
[13:58] <Global> LOGUSERS: IRCTools (IRCTools@HIDDEN) (IRCTools :IRCTools) [HIDDEN] connected to the network (Mystic.demonirc.net).
But i only want it to relay this part:
[13:57] <Global> OperServ: Gemster: oper list
Code: Select all
bind pubm * "OperServ: *" relay:pubm
proc relay:pubm {nick uhost hand chan text} {
putserv "PRIVMSG #opers :$text"
}
Code: Select all
bind raw * notice time:test
proc time:test {from keyword text} {
putserv "PRIVMSG ###1 :$text"
}
Code: Select all
if {"$text" != "NOTICE- *** Notice -- TS Control"} {
return
}
Code: Select all
if {![string equal [lrange [split $text] 0 1] "TS Control"]} return
Code: Select all
bind raw - NOTICE time:test
proc time:test {from keyword text} {
if {[string match {\*\*\* Notice -- TS Control *} $text]} {
puthelp "PRIVMSG ###1 :$text"
}
return 0
}
Code: Select all
bind raw - NOTICE time:test
proc time:test {from keyword text} {
if {[string match {* TS Control *} $text]} {
puthelp "PRIVMSG ###1 :SNOTICE matched \" *TS Control *\": \"$text\""
} {
puthelp "PRIVMSG ###1 :SNOTICE did not match \" *TS Control *\": \"$text\""
}
return 0
}