diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-18 11:52:21 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-18 11:52:21 +0200 |
commit | b018c536a0cabd9e803dcc31a9119876f0e262cc (patch) | |
tree | e178c9dccc464a6807148d896441352c897e2610 | |
parent | fae939f04be00cf7aa798563839f97a1b058e92b (diff) |
Reformatted com_asetv()
-rw-r--r-- | FICS/adminproc.c | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c index 7adcea0..a84d2f3 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -1090,22 +1090,28 @@ PUBLIC int com_pose(int p, param_list param) * user indicated. For example, "asetv DAV shout 0" would set DAV's shout * variable to 0. */ -PUBLIC int com_asetv(int p, param_list param) +PUBLIC int +com_asetv(int p, param_list param) { - int p1; + int p1; - ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); - if ((p1 = player_find_part_login(param[0].val.word)) < 0) { - pprintf(p, "%s is not logged in.\n", param[0].val.word); - return COM_OK; - } - if ((parray[p].adminLevel <= parray[p1].adminLevel) && !player_ishead(p)) { - pprintf(p, "You can only aset players below your adminlevel.\n"); - return COM_OK; - } - pprintf(p, "Command issued as %s\n", parray[p1].name); - pcommand(p1, "set %s\n", param[1].val.string); - return COM_OK; + ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); + + if ((p1 = player_find_part_login(param[0].val.word)) < 0) { + pprintf(p, "%s is not logged in.\n", param[0].val.word); + return COM_OK; + } + + if ((parray[p].adminLevel <= parray[p1].adminLevel) && + !player_ishead(p)) { + pprintf(p, "You can only aset players below your adminlevel." + "\n"); + return COM_OK; + } + + pprintf(p, "Command issued as %s\n", parray[p1].name); + pcommand(p1, "set %s\n", param[1].val.string); + return COM_OK; } /* |