Author Topic: Why do some add-ons break the auto admin message?  (Read 863 times)

Some add-ons, such as the deAsciify script, break the auto admin message.

It also says +- no auto admin in the console when auto admins join.

Why is this? This is a little annoying.

i think you have to return the AutoAdminCheck parent.

i think you have to return the AutoAdminCheck parent.
Correct.

deAsciify fails to do this.

Code: [Select]
function GameConnection::autoAdminCheck(%this)
{
Parent::autoAdminCheck(%this);
%name=doClientNameCheck(%this.bl_id,deAsciify(%this.name),2);
%this.useThisName=%name;
if($Pref::Server::deAsciify::AnnounceNameChange && %this.useThisName!$=%this.name)
schedule(100,0,"messageAll",'',"\c4DeAsciify: \c1Name has been changed to\c3" SPC %name @ "\c1.");
}

If you go into the code and replace that with this it should work:
Code: [Select]
function GameConnection::autoAdminCheck(%this)
{
%r = Parent::autoAdminCheck(%this);
%name=doClientNameCheck(%this.bl_id,deAsciify(%this.name),2);
%this.useThisName=%name;
if($Pref::Server::deAsciify::AnnounceNameChange && %this.useThisName!$=%this.name)
schedule(100,0,"messageAll",'',"\c4DeAsciify: \c1Name has been changed to\c3" SPC %name @ "\c1.");
return %r;
}

this is likely the same reason all of them cause problems.

simply do as stated above, but make sure %r isn't in use!