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.

multiword public trigger script

Old posts that have not been replied to for several years.
Locked
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

multiword public trigger script

Post by Fluxism »

Have this simple little script, you can all see what it does. But I'd like to add a multiword trigger, for example "whats the ip" or "server ip?" aswell, would someone tell me the format I need to use please?

Code: Select all

set our_chan "#eggy"

bind pub - ip iphandler
bind pub - ip? iphandler

proc iphandler {nick uhost hand chan text} {
        global our_chan

        if {$chan != $our_chan} {
                return 0
        }

        putserv "privmsg $chan :unreal://1.2.3.4:7777"

        return 1
}

W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

Cant you just add multiple binds for all the triggers you want?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

For multiword triggers, you need to use the pubm bind, rather than the pib bind.

If you read tcl-commands.doc, it contain all the information needed, ragarding how this works.
Locked