egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newbie question: where is isbot{}-proc?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
foxterrier
Voice


Joined: 20 Dec 2010
Posts: 5

PostPosted: Mon Dec 20, 2010 11:27 am    Post subject: newbie question: where is isbot{}-proc? Reply with quote

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
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon Dec 20, 2010 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
foxterrier
Voice


Joined: 20 Dec 2010
Posts: 5

PostPosted: Mon Dec 20, 2010 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Dec 20, 2010 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
foxterrier
Voice


Joined: 20 Dec 2010
Posts: 5

PostPosted: Mon Dec 20, 2010 5:09 pm    Post subject: Reply with quote

that was something i thought next to try.

how none written simple function for this? do i have to?
Back to top
View user's profile Send private message
foxterrier
Voice


Joined: 20 Dec 2010
Posts: 5

PostPosted: Mon Dec 20, 2010 5:16 pm    Post subject: Reply with quote

btw. whats different /w 'registered'?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Dec 20, 2010 5:17 pm    Post subject: Reply with quote

Someone who's been added as a user or bot using .+user, .adduser, or .+bot
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
foxterrier
Voice


Joined: 20 Dec 2010
Posts: 5

PostPosted: Mon Dec 20, 2010 5:21 pm    Post subject: Reply with quote

got that, covers 104% in our chan..
something like: if { [ matchattr [ nick2hand $nick ] "b" ] } {...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber