This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
foxterrier
Voice
Posts: 5 Joined: Mon Dec 20, 2010 11:20 am
Post
by foxterrier » Mon Dec 20, 2010 11:27 am
Is it in some module? I don't use botnet, but one of scripts needs to know if kicker or kicked is bot...
TCL_no_TK
Owner
Posts: 509 Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire
Post
by TCL_no_TK » Mon Dec 20, 2010 4:44 pm
check the 'doc/' folder of the eggdrop directory. its called 'tcl-commands.doc' or if you want the html version 'doc/html/' directory. View it online
here via: eggheads.org
Code: Select all
...
if {[isbotnick $nick]} {return true} else {return false}
foxterrier
Voice
Posts: 5 Joined: Mon Dec 20, 2010 11:20 am
Post
by foxterrier » Mon Dec 20, 2010 4:58 pm
tcl-commands.doc contains proc isbotnick (in module server) and is useless.
it founds MY bot as bot but other bots as human
still looking around...
I need function to see if object is human or bot
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Mon Dec 20, 2010 5:06 pm
I'd suggest something along these lines:
First get the user/bot's handle using nick2hand . Then use matchattr to check whether the handle has the "b" flag or not (indicating whether it's a registered bot or not).
NML_375
foxterrier
Voice
Posts: 5 Joined: Mon Dec 20, 2010 11:20 am
Post
by foxterrier » Mon Dec 20, 2010 5:09 pm
that was something i thought next to try.
how none written simple function for this? do i have to?
foxterrier
Voice
Posts: 5 Joined: Mon Dec 20, 2010 11:20 am
Post
by foxterrier » Mon Dec 20, 2010 5:16 pm
btw. whats different /w 'registered'?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Mon Dec 20, 2010 5:17 pm
Someone who's been added as a user or bot using .+user, .adduser, or .+bot
NML_375
foxterrier
Voice
Posts: 5 Joined: Mon Dec 20, 2010 11:20 am
Post
by foxterrier » Mon Dec 20, 2010 5:21 pm
got that, covers 104% in our chan..
something like: if { [ matchattr [ nick2hand $nick ] "b" ] } {...