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.

Help with adjusting a relay script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Help with adjusting a relay script

Post by Football »

Code: Select all

# 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.
Post Reply