Jump to content
SSForum.net is back!

Recommended Posts

Posted

Hi everyone,

 

When working with MERVBot I noticed there was a bug / problem with the limited operators. Maybe I'm doing something wrong, maybe it is already fixed, however it doesnt work with me ;) . Here is the problem / bug:

 

When you have a mervbot online and you got acces to it, add a operator with limited acces.

!addop -l=1 SomePlayer

 

No problems here.. All works fine. However when you close the bot, the bot writes the added operators to the text file Operators.txt. So 'SomePlayer' is added to Operators like this:

1:SomePlayer:

 

No problems. Only when you start the bot, the following message is given:

Invalid Limited-level operator ignored: SomePlayer ()

 

The operator isnt added at all, it is ignored because it recognizes it as a invalid operator.

 

I think this is a bug, however it hasnt has to be smile.gif

 

Please check this and let me know how to resolve this.

 

Thank you,

MMaverick

Check out your zone population statistics at stats.sshq.net!

 

 

Maverick

Subspace Statistics Administrator

Retired SSCU Trench Wars Super Moderator

TWCore Coordinator Administrator

Posted

What is the name of the player? I know that message appears when there is a % sign in a name or the name is an invalid SS name.

Here is another problem

void gotOperator(char *line)
{
String s = line;

Operator_Level level;
String name, p!@#$%^&*;

level = (Operator_Level)s.split(':').toInteger();
name = s.split(':');
p!@#$%^&* = s.split(':');

if ((level >= OP_Moderator && level <= OP_God) &&
 (!invalidName(name.msg))      )
{
 db->addOperator(name.msg, passmsg, level);

 printf("Added %s-level operator: %s (%s)\n", getLevelString(level), name.msg, passmsg);
}
else
 printf("Invalid %s-level operator ignored: %s (%s)\n", getLevelString(level), name.msg, passmsg);
}
enum Operator_Level
{
OP_Player,    // Requests information services
OP_Limited,    // Player with some privelages
OP_Moderator, 	 // Represents player interests
OP_SuperModerator,  // Manages moderators
OP_SysOp,    // Adds/removes/modifies available bot services
OP_Owner,    // Changes internal bot settings
OP_Duke,
OP_Baron,
OP_King,
OP_Emperor,
OP_RockStar,
OP_Q,
OP_God   	 // ...Some other ways to say "Owner"
};

 

if ((level >= OP_Moderator && level <= OP_God) &&

(!invalidName(name.msg))

Should be

if ((level >= OP_Limited&& level <= OP_God) &&

(!invalidName(name.msg))

 

ill email catid about it, i added the fix to this post. For some reason .net compiles merv 100k smaller than vc++6

Posted
that happens if you set it to release. I've also experienced some issues with it, so I always compile on debug now

_UU___UU__SSSSS____AAA____UU___UU__SSSSS____AAA___

_UU___UU_SS_______AAAAA___UU___UU_SS_______AAAAA__

_UU___UU__SSSSS__AA___AA__UU___UU__SSSSS__AA___AA_

_UU___UU______SS_AAAAAAA__UU___UU______SS_AAAAAAA_

__UUUUU___SSSSS_AA____AA___UUUUU___SSSSS_AA____AA

J.C. Dento> prime example of why america will never be a world super power.

Moscato> d1 is mad he will never have a job outside subspace

I can't see this because I turned signatures off. ps VT

Guest
This topic is now closed to further replies.
×
×
  • Create New...