aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/adminproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-09 13:04:55 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-09 13:04:55 +0200
commit51d70b2b892d99674f40611b5901c6f2a3f18551 (patch)
treeb886ffecf73331cf6e2fd01513fa5d4b098e060a /FICS/adminproc.c
parent0dc976edca974df19766e3ffbf53fb8576e6f3bc (diff)
Reformatted com_summon()
Diffstat (limited to 'FICS/adminproc.c')
-rw-r--r--FICS/adminproc.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c
index c8c8dcd..f03ad7f 100644
--- a/FICS/adminproc.c
+++ b/FICS/adminproc.c
@@ -1649,20 +1649,24 @@ PUBLIC int com_nuke(int p, param_list param)
* want to talk with him/her. The command is useful for waking someone up,
* for example a sleepy admin or an ignorant player.
*/
-PUBLIC int com_summon(int p, param_list param)
+PUBLIC int
+com_summon(int p, param_list param)
{
- int p1;
- ASSERT(parray[p].adminLevel >= ADMIN_ADMIN);
- if ((p1 = player_find_part_login(param[0].val.word)) < 0) {
- pprintf(p, "%s isn't logged in.\n", param[0].val.word);
- return COM_OK;
- } else {
- pprintf(p1, "\a\n");
- pprintf_highlight(p1, "%s", parray[p].name);
- pprintf_prompt(p1, " needs to talk with you. Use tell %s <message> to reply.\a\n", parray[p].name);
- pprintf(p, "Summoning sent to %s.\n", parray[p1].name);
- return COM_OK;
- }
+ int p1;
+
+ ASSERT(parray[p].adminLevel >= ADMIN_ADMIN);
+
+ if ((p1 = player_find_part_login(param[0].val.word)) < 0) {
+ pprintf(p, "%s isn't logged in.\n", param[0].val.word);
+ return COM_OK;
+ } else {
+ pprintf(p1, "\a\n");
+ pprintf_highlight(p1, "%s", parray[p].name);
+ pprintf_prompt(p1, " needs to talk with you. Use tell %s "
+ "<message> to reply.\a\n", parray[p].name);
+ pprintf(p, "Summoning sent to %s.\n", parray[p1].name);
+ return COM_OK;
+ }
}
/*