| View previous topic :: View next topic |
| Author |
Message |
renegate98 Voice
Joined: 16 Feb 2013 Posts: 2
|
Posted: Sat Feb 16, 2013 12:30 pm Post subject: nicklist.tcl -> hide bot |
|
|
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 |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Sat Feb 16, 2013 12:33 pm Post subject: |
|
|
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 |
|
 |
renegate98 Voice
Joined: 16 Feb 2013 Posts: 2
|
Posted: Sat Feb 16, 2013 2:21 pm Post subject: |
|
|
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 |
|
 |
Madalin Master

Joined: 24 Jun 2005 Posts: 310 Location: Constanta, Romania
|
Posted: Sat Feb 16, 2013 2:22 pm Post subject: |
|
|
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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Feb 16, 2013 5:53 pm Post subject: Re: nicklist.tcl -> hide bot |
|
|
| 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 |
|
 |
|