Although not exactly on the topic of this post, here's some info on the chanlist command:
doc/tcl-commands.doc wrote:chanlist <channel> [flags[&chanflags]]
Description: flags are any global flags; the '&' denotes to look for channel specific flags. Examples:
n - Global Owner
&n - Channel Owner
o&m - Global Op, Channel Master
Returns: list of nicknames currently on the bot's channel that have all of the flags specified;. If no flags are given, all of the nicknames are returned. Please note that if you're executing chanlist after a part or sign bind, the gone user will still be listed, so you can check for wasop, isop, etc.
Module: irc
Now, as it returns a list, there is no need to use split. In fact, using split on the output of this command may produce unexpected results.
Flags would be matched against the first matching handle within the userlist, and does also permit the use of +/- to create more advanced filters (+ being default).
Looking at his code, he's using [isop] and not caring about Eggdrop flags. Fire-Fox, If you want to get the list of people with Eggdrop flags higher than o then go with nml375's suggestion
Sir_Fz wrote:Looking at his code, he's using [isop] and not caring about Eggdrop flags. Fire-Fox, If you want to get the list of people with Eggdrop flags higher than o then go with nml375's suggestion
What I get from the initial post is that Fire-Fox wants the bot to count channel admins and owners that some ircds support. The only way to do that is to set opchars to "@&~", or whatever symbols the ircd uses, so the bot will recognize them as being operator level and/or higher.
I did not get the impression Fire-Fox was trying to get the list from eggdrop flags.
But editing the opchars does not mean that eggdrop will be able to differentiate between the different levels of each char. It only means that [isop] will detect them as op status.
Sir_Fz wrote:Looking at his code, he's using [isop] and not caring about Eggdrop flags. Fire-Fox, If you want to get the list of people with Eggdrop flags higher than o then go with nml375's suggestion
What I get from the initial post is that Fire-Fox wants the bot to count channel admins and owners that some ircds support. The only way to do that is to set opchars to "@&~", or whatever symbols the ircd uses, so the bot will recognize them as being operator level and/or higher.
I did not get the impression Fire-Fox was trying to get the list from eggdrop flags.
You are right thats the meaning of the whole thing
I did get it to work but not fully, there are 2 owner in the chan that means 2 ~ and we have one with % but it will not show thise two