Add SetGMStatus to LUA, cleanup unused variable, cleanup naming of new function added to Client class, remove unneeded return on void function. (#1471)

* Fix issue #1469 - remove unused variable in perl_client

* Add SetGMStatus to LUA, clean up naming in client.cpp to be consistent with the perl/lua naming, remove unneeded return in void function

* Delete PERL_CLIENT.ipch
This commit is contained in:
E Spause
2021-07-26 13:03:17 -04:00
committed by GitHub
parent 8696ba398b
commit 792a3b1443
5 changed files with 11 additions and 7 deletions
+1 -2
View File
@@ -3420,10 +3420,9 @@ XS(XS_Client_SetGMStatus) {
Perl_croak(aTHX_ "Usage: Client::SetGMStatus(THIS, int newStatus)"); // @categories Script Utility
{
Client *THIS;
uint32 accID = THIS->AccountID();
int newStatus = (int)SvIV(ST(1));
VALIDATE_THIS_IS_CLIENT;
THIS->SetAdminStatus(newStatus);
THIS->SetGMStatus(newStatus);
THIS->UpdateAdmin(true);
}
XSRETURN_EMPTY;