Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: MySQL listing question  (Read 1727 times)

0 Members and 1 Guest are viewing this topic.

webcoder

  • Anope User
  • Offline Offline
  • Posts: 4
    • www.xalarisirc.net
MySQL listing question
« 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
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #1 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..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #2 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.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

webcoder

  • Anope User
  • Offline Offline
  • Posts: 4
    • www.xalarisirc.net
(No subject)
« Reply #3 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.
Logged

katsklaw

  • Guest
(No subject)
« Reply #4 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.
Logged
Pages: [1]   Go Up