| View previous topic :: View next topic |
| Author |
Message |
foxterrier Voice
Joined: 20 Dec 2010 Posts: 5
|
Posted: Mon Dec 20, 2010 11:27 am Post subject: newbie question: where is isbot{}-proc? |
|
|
| Is it in some module? I don't use botnet, but one of scripts needs to know if kicker or kicked is bot... |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Mon Dec 20, 2010 4:44 pm Post subject: |
|
|
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: | ...
if {[isbotnick $nick]} {return true} else {return false} |
_________________ TCL the misunderstood |
|
| Back to top |
|
 |
foxterrier Voice
Joined: 20 Dec 2010 Posts: 5
|
Posted: Mon Dec 20, 2010 4:58 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Dec 20, 2010 5:06 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
foxterrier Voice
Joined: 20 Dec 2010 Posts: 5
|
Posted: Mon Dec 20, 2010 5:09 pm Post subject: |
|
|
that was something i thought next to try.
how none written simple function for this? do i have to? |
|
| Back to top |
|
 |
foxterrier Voice
Joined: 20 Dec 2010 Posts: 5
|
Posted: Mon Dec 20, 2010 5:16 pm Post subject: |
|
|
| btw. whats different /w 'registered'? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Dec 20, 2010 5:17 pm Post subject: |
|
|
Someone who's been added as a user or bot using .+user, .adduser, or .+bot _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
foxterrier Voice
Joined: 20 Dec 2010 Posts: 5
|
Posted: Mon Dec 20, 2010 5:21 pm Post subject: |
|
|
got that, covers 104% in our chan..
something like: if { [ matchattr [ nick2hand $nick ] "b" ] } {... |
|
| Back to top |
|
 |
|