Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: webcoder on March 09, 2008, 05:18:23 AM

Title: MySQL listing question
Post by: webcoder on March 09, 2008, 05:18:23 AM
Hello,

    I have anope set up to dump the channel names into a mysql database, and I am writing a php script to list the channel names on my website. My problem is when my script pulls the info from the data base, its adding 2 "#"'s is there a way I can make anope leave these out?

thanks
Title:
Post by: Jan Milants on March 09, 2008, 11:28:46 AM
no, it s much easier to change your script then it is to change Anope's behavior.
If there are 2 #s in the db, it would be a bug, there should be only one, however if it s your script adding the second, you shouldn't be blaming anope..
Title:
Post by: Jobe on March 09, 2008, 01:05:28 PM
There can easily be 2 if a channel is registered with 2. For example ##anope is still a valid channel name.
Title:
Post by: webcoder on March 09, 2008, 04:12:00 PM
well, I wasn't trying to blame anope, I was just asking. geez. excuse the heck out of me.
Title:
Post by: katsklaw on March 10, 2008, 01:20:27 PM
the fastest way to see if there are indeed 2 channels named # is to login to your shell cd to your services directory and type:./listchans > chans.txt

Then open chans.txt in your favorite editor. If you have 2 #'s there then it might be a bug in Anope. Otherwise it's likely to be generated outside of Anope's scope.