Guess that's why one should never code when dead-tired (or quite intoxicated)
(learned that the hard way myself...)
Tho while we're at it, might aswell throw in something like this
Code: Select all
proc botaway {
global nick
return [expr {[string equal -nocase bla $nick] || [string equal -nocase blabla $nick]}]
}
proc afk {n u ho ha c t} {
global nick
if {[botaway]} {
puthelp "PRIVMSG $c :${nick} is AFK"
}
}
Anyway, what still puzzles me is this: is it the user typing !afk, or the bot, that we are supposed to test against those afk-nicks?
I've never known an eggdrop to be afk sorta.. but then again, why would an user need a bot to tell him/her wether (s)he's afk.. (and quite limited to two possible nicks)
But as it seems darton is'nt putting much more info into this thread, I guess we'll never know *shrug*