Topic: [Fixed] Bad auth_admin sql field on different channels
I gave aop my account kmc724 in ★ and check my DB but DB say "auth_admin__"..
My OS is ubuntu 12.04 and using apache2 ..
Why DB say "auth_admin__" ...
PvPGN Community Forums |
forums.pvpgn.pro → [EN] Tech Support → [Fixed] Bad auth_admin sql field on different channels
I gave aop my account kmc724 in ★ and check my DB but DB say "auth_admin__"..
My OS is ubuntu 12.04 and using apache2 ..
Why DB say "auth_admin__" ...
This is wrong field, you can remove it.
See values in auth_operator and auth_admin.
auth_admin__ Value is true.
and _ may say ★
This is true working in my server but it's not working on that field ..
We do not understand what do you mean.
auth_admin__ is not properly field, I guess it may be created with /set command. Or you have modified your code to use it.
If your account is operator then auth_operator should be true. If your account has admin flag then auth_admin should be true.
Sorry I was late..
That picture says that account have admin permission in ★ channel, d channel.
d is right said but ★ doesn't said on mysql server ..
Can you understand..?
Ok, now I see that database fields are named by the corresponding channels. Thereby "auth_admin" field for a channel "★" should be "auth_admin_★". Isn't it?
Probably PvPGN cuts UTF symbols in field names before write to a db.
Sorry to late..
Yes, you're right.
Is this problem can I solve ..?
I was trying change encoding db (latin->utf8) but it's not work..
I can't create a channel with name "★" from any game client (sc, wc3). It always replaced to "?" when I do copy-paste.
How do I reproduce the bug step by step?
You can create "★" channel using utf8towin (You write in your post.)
But I'm using Linux so I used iconv library.
I think, this problem is not encoding, because I tried PvPGN-199.r577 version (not custom) and this problem is same
("★" or "?" always say "auth_channel___")..
I'm sorry to using dirty English ..
Test it with my changes in storage_sql.cpp (replace it)
Oh... It does not work..
It same what DB say "auth_channel_____" T_T
I tried with /op on a channel "?" on my account and there's a new field is created "auth_operator_?" in the database.
Can you confirm it?
Oh.. I'm very sorry.. I was upload another storage_sql.cpp file..
That's work! You are a good skill!
Thank you, HarpyWar!
forums.pvpgn.pro → [EN] Tech Support → [Fixed] Bad auth_admin sql field on different channels