we recently had to change our IRC channel from a normal # channel to a ! channel. Since we did this I had to adjust most of our tcl scripts. Everything went good till I had to use the chanlist command again.
I'm getting this error all the time I call my count proc. I already tried to escape it with \!9ZLTBtest like it works in other commands but I didn't find anything that works.
You'll have to use the descriptive name (!test), not the real name (!9LZTBtext) with eggdrop's internal commands. For convenience, you can use the channame2dname and dchanname2name functions to convert between the two.
channame2dname<channel-name> chandname2name<channel-dname>
Description: these two functions are important to correctly support !channels. The bot differentiates between channel description names (chan dnames) and real channel names (chan names). The chan dnames are what you would normally call the channel, such as "!channel". The chan names are what the IRC server uses to identify the channel. They consist of the chan dname prefixed with an ID; such as "!ABCDEchannel".
For bot functions like isop, isvoice, etc. you need to know the chan dnames. If you communicate with the server, you usually get the chan name, though. That's what you need the channame2dname function for. If you only have the chan dname and want to directly send raw server commands, use the chandname2name command.
NOTE: For non-!channels, chan dname and chan name are the same.