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 

nicklist.tcl -> hide bot

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
renegate98
Voice


Joined: 16 Feb 2013
Posts: 2

PostPosted: Sat Feb 16, 2013 12:30 pm    Post subject: nicklist.tcl -> hide bot Reply with quote

hello,

at first sorry for my bad english!

it's possible to hide the eggdrop nick in the nicklist.txt?

regards
rené
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sat Feb 16, 2013 12:33 pm    Post subject: Reply with quote

Can you give more details about what you want to hide?
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
renegate98
Voice


Joined: 16 Feb 2013
Posts: 2

PostPosted: Sat Feb 16, 2013 2:21 pm    Post subject: Reply with quote

i have a channel in euirc.net. an eggdrop read the users who is online and write a textfile whith nicklist.tcl.
this eggdrop (bot) is also list in this list, but i would like hide this bot.

i hope you understand what i mean.

rené
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sat Feb 16, 2013 2:22 pm    Post subject: Reply with quote

I have to see the script so that i add the code
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Feb 16, 2013 5:53 pm    Post subject: Re: nicklist.tcl -> hide bot Reply with quote

renegate98 wrote:
hello,

at first sorry for my bad english!

it's possible to hide the eggdrop nick in the nicklist.txt?

regards
rené

The eggdrop's current nickname is always the first in the nicklist it returns. This would be index position 0. So you just need to skip this first position with a "list range" or [lrange].
Code:
change this:
set nicklist [chanlist $channel]

to this:
set nicklist [lrange [chanlist $channel] 1 end]

_________________
speechles' eggdrop tcl archive
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 -> Script Requests 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