mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-05 00:03:52 +00:00
Modified #flag functionality for target-based account status refresh.
This commit is contained in:
parent
3048eca5ad
commit
f8ce556acb
@ -1,5 +1,9 @@
|
||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||
-------------------------------------------------------
|
||||
== 01/13/2016 ==
|
||||
Kinglykrab: Modified #flag so you can refresh your target's account status (GM status level) without them having to relog.
|
||||
- Just target the person whose flag you want to refresh and type #flag.
|
||||
|
||||
== 01/12/2016 ==
|
||||
Athrogate: Adding ClearCompassMark() to Lua.
|
||||
- Lua didn't have ClearCompassMark(). Perl already had this.
|
||||
|
||||
@ -4395,8 +4395,14 @@ void command_uptime(Client *c, const Seperator *sep)
|
||||
void command_flag(Client *c, const Seperator *sep)
|
||||
{
|
||||
if(sep->arg[2][0] == 0) {
|
||||
c->UpdateAdmin();
|
||||
c->Message(0, "Refreshed your admin flag from DB.");
|
||||
if (!c->GetTarget() || (c->GetTarget() && c->GetTarget() == c)) {
|
||||
c->UpdateAdmin();
|
||||
c->Message(0, "Refreshed your admin flag from DB.");
|
||||
} else if (c->GetTarget() && c->GetTarget() != c && c->GetTarget()->IsClient()) {
|
||||
c->GetTarget()->CastToClient()->UpdateAdmin();
|
||||
c->Message(0, "%s's admin flag has been refreshed.", c->GetTarget()->GetName());
|
||||
c->GetTarget()->Message(0, "%s refreshed your admin flag.", c->GetName());
|
||||
}
|
||||
}
|
||||
else if (!sep->IsNumber(1) || atoi(sep->arg[1]) < -2 || atoi(sep->arg[1]) > 255 || strlen(sep->arg[2]) == 0)
|
||||
c->Message(0, "Usage: #flag [status] [acctname]");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user