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.

filter text

Help for those learning Tcl or writing their own scripts.
Post Reply
m
mindflow
Voice
Posts: 22
Joined: Thu Mar 10, 2005 11:14 am

filter text

Post by mindflow »

proc !trigger {nick uhost hand chan arg} {

$arg will return everything typed in the channel "if its the trigger is given", the problem i have, thats that it even grab the !trigger, how can i make it so it leav out the first word in the trigger "only the first word", like if i type in a channel:

!trigger text text

then i want it to be returned as: text text

and leav out the !trigger part, how can i solve this?
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind pub - !trigger bla

proc bla {nick uhost hand chan arg} {
 # $arg is the written text except !trigger
}
This is a pub bind, a pubm bind will have everything in $arg including trigger.
Post Reply