Let's say the first bot is online and has some variables running (i.e. %school(%student)...how can i pass all those runned variables from my first bot, to my second bot when he islinked? (so transfering all the existing variables of %school to second bot)
bind msg - var add:var
proc add:var {nick uhost hand arg} {
global [lindex [split $arg] 0]
set [lindex [split $arg] 0] "[join [lrange [split $arg] 1 end]]"
}
when someone messages your bot var varname elements the bot will set a new variable with the name you specify in varname and add elements into it. Also it will be called globally so you can use it anywhere you want in the bot.
note that you can specify flags in the bind instead of "-"
He was talking about the bind msg - var add:var, as you can see it's for ANYONE not ONLY for known users. Replace the - with an custrom flag that suits your needs.
Once the game is over, the king and the pawn go back in the same box.
Actualy yes, I understand now what he realy meant to say.. Well, that variables changing is realy damned insecure as he said. For instance, someone can change the owner of the eggdrop by just using that code. You got to be damn stupid to load something like that on your eggdrop.
Once the game is over, the king and the pawn go back in the same box.