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 

Variable and auth script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
kwnds
Voice


Joined: 15 Mar 2007
Posts: 21

PostPosted: Wed Mar 21, 2007 3:45 pm    Post subject: Variable and auth script Reply with quote

-I need to creat a tcl that save the last 2 words to create a system of login like this:
/ms my-eggdrop-name auth raul testing
-And now i need to save "raul" on $username" and "testing" on $password.
How can i make that?
-When i receive the mensage auth, how can i check if the first word is auth?
Example:
if (%code-to-see-the-first-word=="auth");
-After i save the $username, how can i create variables using the value of username?
Like this: the $username ir raul
set raul_test
I just want to create a variable with the value of $username and with _test after it.
Thanks
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Mar 21, 2007 6:54 pm    Post subject: Reply with quote

Code:
bind msg - auth catch:info

proc catch:info {nick uhost hand arg} {
 set user [lindex [split $arg] 0]
 set pass [lindex [split $arg] 1]
 putlog "Username: $user - Password: $pass"
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
kwnds
Voice


Joined: 15 Mar 2007
Posts: 21

PostPosted: Thu Mar 22, 2007 4:43 pm    Post subject: Reply with quote

Sir_Fz i dont know how to say thank to you, i am really happy.
Tomorrow i will use the code, and thanks a lot for you work.
From portugal, kwnds
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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