Football Master
Joined: 26 Dec 2008 Posts: 205 Location: Quakenet, #Football
|
Posted: Thu Sep 13, 2012 5:59 am Post subject: Help with adjusting a relay script |
|
|
| Code: | # Channel flag.
setudef flag monitorText
# Subchannel.
set subchannel #lineups
# Bind all text in all channels.
bind pubm - * monitorProc
proc monitorProc {nick uhost hand chan text} {
global subchannel
# Check channel flag.
if {![channel get $chan monitorText]} {
return 0
}
# Check text for matching values.
if { [string match "*chat with me*" $text] } {
# Send matching text to subchannel.
putserv "PRIVMSG #chatworld :$text"
}
} |
Could anyone help me please, I would like to adjust this script so instead of relaying the message from $1- it will relay it from $2-
For instance:
<Yamaha> (Tony): won't you chat with me?
Will relay it as:
<Bot> won't you chat with me? _________________ Idling at #Football, Quakenet. |
|