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.
Old posts that have not been replied to for several years.
Fluxism
Halfop
Posts: 47 Joined: Mon Aug 05, 2002 8:58 am
Post
by Fluxism » Sun Oct 27, 2002 7:39 pm
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
}
Weirdo
Master
Posts: 265 Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England
Post
by Weirdo » Sun Oct 27, 2002 7:58 pm
Cant you just add multiple binds for all the triggers you want?
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Mon Oct 28, 2002 6:41 am
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.