aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/talkproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/talkproc.c')
-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