October 31, 2024, 10:58:55 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Anope IRC Services
>
Anope Support
>
1.8.x/1.7.x Support (Read Only)
>
MySQL listing question
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: MySQL listing question (Read 3272 times)
0 Members and 1 Guest are viewing this topic.
webcoder
Anope User
Offline
Posts: 4
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
Gender:
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
Gender:
Posts: 1023
(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
Posts: 4
(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
Print
Pages: [
1
]
Go Up
« previous
next »