aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-14 11:02:45 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-14 11:02:45 +0200
commitd7f1c10f41460a77afe3492f31565d4d9cebbb98 (patch)
treeb2cbfa4286247302adb91804a9c43a23046e8ed5 /FICS
parente31c221e197ea7b58f9e7cdcb6d09032f1fba43a (diff)
Reformatted com_clearmessages()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/talkproc.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c
index 699173a..739b908 100644
--- a/FICS/talkproc.c
+++ b/FICS/talkproc.c
@@ -710,24 +710,27 @@ PUBLIC int com_messages(int p, param_list param)
return COM_OK;
}
-PUBLIC int com_clearmessages(int p, param_list param)
+PUBLIC int
+com_clearmessages(int p, param_list param)
{
- int start;
+ int start;
- if (player_num_messages(p) <= 0) {
- pprintf(p, "You have no messages.\n");
- return COM_OK;
- }
- if (param[0].type == TYPE_NULL) {
- pprintf(p, "Messages cleared.\n");
- player_clear_messages(p);
- } else if (param[0].type == TYPE_WORD) {
- ClearMsgsBySender(p, param);
- } else if (param[0].type == TYPE_INT) {
- start = param[0].val.integer;
- ClrMsgRange (p, start, start);
- }
- return COM_OK;
+ if (player_num_messages(p) <= 0) {
+ pprintf(p, "You have no messages.\n");
+ return COM_OK;
+ }
+
+ if (param[0].type == TYPE_NULL) {
+ pprintf(p, "Messages cleared.\n");
+ player_clear_messages(p);
+ } else if (param[0].type == TYPE_WORD) {
+ ClearMsgsBySender(p, param);
+ } else if (param[0].type == TYPE_INT) {
+ start = param[0].val.integer;
+ ClrMsgRange(p, start, start);
+ }
+
+ return COM_OK;
}
PUBLIC int