mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 04:28:00 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user