| View previous topic :: View next topic |
| Author |
Message |
kwnds Voice
Joined: 15 Mar 2007 Posts: 21
|
Posted: Wed Mar 21, 2007 3:45 pm Post subject: Variable and auth script |
|
|
-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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Mar 21, 2007 6:54 pm Post subject: |
|
|
| 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 |
|
 |
kwnds Voice
Joined: 15 Mar 2007 Posts: 21
|
Posted: Thu Mar 22, 2007 4:43 pm Post subject: |
|
|
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 |
|
 |
|