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 TCL - $arg - TNX!!

Old posts that have not been replied to for several years.
Locked
s
saerd
Voice
Posts: 21
Joined: Wed Feb 11, 2004 12:33 pm

Help TCL - $arg - TNX!!

Post by saerd »

Hi all!!
I want to make a script that, when in my chan any users, type:
!find test1 test2 test3
My eggdrop MUST reply:
http://www.xxxxx.yyy/search.php=test1+test2+test3

I have created this script, but it works with only a word of search
If I type !find test1 test2 test3, hi reply me:

http://www.xxxxx.yyy/search.php=test1 test2 test3
So, i need the "+" between the words!!

Code: Select all

bind pub -|- !find pub:find

proc pub:find {nick host hand chan arg} { 
putserv "PRIVMSG $nick :http://www.xxxx.yyy/search.php=$arg"
}
Any help ?? Many thanks!!
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

try:

Code: Select all

bind pub -|- !find pub:find 
proc pub:find {nick host hand chan arg} { 
set arg [join $arg +]
putserv "PRIVMSG $nick :http://www.xxxx.yyy/search.php=$arg" 
}
Que?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind pub -|- !find pub:find 

proc pub:find {nick host hand chan arg} { 
set stuff [join [split $arg] +]
putserv "PRIVMSG $nick :http://www.xxxx.yyy/search.php=$stuff" 
} 
s
saerd
Voice
Posts: 21
Joined: Wed Feb 11, 2004 12:33 pm

Post by saerd »

It works 100%!!!
MANY THANKS!!!!
CIAO!!
Locked