egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

filter text

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
mindflow
Voice


Joined: 10 Mar 2005
Posts: 22

PostPosted: Thu Dec 29, 2005 2:34 pm    Post subject: filter text Reply with quote

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?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Dec 29, 2005 7:37 pm    Post subject: Reply with quote

Code:
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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber