ive modify a small tcl i found somewhere to have it function as a custom hello/ pass routine without the built in one wich takes the current used nick as user while we want to customize that to fill in our own
bind msg - helloo hello:routine
proc hello:routine {nick host hand text} {
global botnick
set user1 [lindex [split $text] 0]
set password [lindex [split $text] 1]
adduser $user1 [maskhost $host 2]
chattr $user1 +jlmnoptx
putserv "NOTICE $nick :Hi $nick I'm $botnick, an eggdrop bot."
putserv "NOTICE $nick :I'll recognize you by hostmask '[maskhost $host 2]' with password $password from now on ."
putserv "NOTICE $nick :YOU ARE THE OWNER ON THIS BOT NOW"
putserv "NOTICE $nick :All major commands are used from DCC chat. From now on, you don't need to use the -m option when starting the bot. Enjoy !!!"
return 0
}
if {[countusers]==0} {
bind msg - helloo hello:routine
}
And indeed, unbind at the end of the hello:routine.
But I don't really understand why you're trying to create this script as the /msg hello function works well. If you do that only to not have 2 commands to register to your eggdrop, I think it's a waste of time
Thanks crazycat, its to decide what user to use as i dont always want to use the nick im currently connected with and dont want to include ident in the host but rather use *!*@host