Raised This Month: $51 Target: $400
 12% 

[Solved] SetUserFlagBits on Linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Otokiru
Senior Member
Join Date: Apr 2012
Old 08-27-2014 , 21:28   [Solved] SetUserFlagBits on Linux
Reply With Quote #1

Hi,

I got this issue with a plugin of mine that uses SetUserFlagBits. It appears that the flag was given correctly as intended, however other plugins are not reading the flag of the user correctly.

Illustration:
1) Plugin #1: Gives "o" flag to user on connect.
2) Confirmed that the user has "o" flag when i type sm_who.
3) Plugin #2: (Example simplechatcolors plugin), was supposed to give a tag for "o" flag, but the user did not receive any privileges from the flag accordingly.
*Not only Plugin #2 has issues, but my other plugins that does a lookup for flags to give certain privileges also has issues.

Currently using: SM Snapshot (1.6.2-git4559.tar.gz) Linux edition.

P/S: Everything works fine on SM Snapshot (1.6.2-git4559.zip) Windows Edition on my another server.

Last edited by Otokiru; 08-28-2014 at 03:54.
Otokiru is offline
SephirothSG
SourceMod Donor
Join Date: Jun 2013
Old 08-28-2014 , 00:01   Re: [Bug] SetUserFlagBits on Linux
Reply With Quote #2

Doesn't simplechatcolors only check the clients flags OnClientPostAdminCheck?
PHP Code:
public OnClientPostAdminCheck(client)
{
    
CheckPlayer(client);

I'm fairly sure that wont be called unless the client reconnects, perhaps try having the plugin that grants the users flag run sm_reloadscc to reload simple chat colours, that should check the players flags again.
SephirothSG is offline
Otokiru
Senior Member
Join Date: Apr 2012
Old 08-28-2014 , 00:27   Re: [Bug] SetUserFlagBits on Linux
Reply With Quote #3

Quote:
Originally Posted by SephirothSG View Post
Doesn't simplechatcolors only check the clients flags OnClientPostAdminCheck?
PHP Code:
public OnClientPostAdminCheck(client)
{
    
CheckPlayer(client);

I'm fairly sure that wont be called unless the client reconnects, perhaps try having the plugin that grants the users flag run sm_reloadscc to reload simple chat colours, that should check the players flags again.
Hmm okay... i think there's a conflict between which plugin trigger first. Because the plugin that SetUserFlagBits also happens to be in the OnClientPostAdminCheck method.

But then, i did run the sm_reloadscc, it still can't detect the flags. And it appears that the other plugin having this issue also checks for flags during OnClientPostAdminCheck.

Is there any way we could determine which plugin to load first than the other?

Weird thing is, everything runs smoothly on Windows, but facing this issue on Linux.
Otokiru is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-28-2014 , 00:35   Re: [Bug] SetUserFlagBits on Linux
Reply With Quote #4

OnClientPostAdminFilter exists to modify user permissions and what Plugin #1 should be using to change permissions around.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Otokiru
Senior Member
Join Date: Apr 2012
Old 08-28-2014 , 03:54   Re: [Bug] SetUserFlagBits on Linux
Reply With Quote #5

Quote:
Originally Posted by Powerlord View Post
OnClientPostAdminFilter exists to modify user permissions and what Plugin #1 should be using to change permissions around.
ok noted, working fine now, thanks!~
Otokiru is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode