From b9e880f428dcbc3cc7ebe7abd1f5e19e985e5ef9 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 14 Apr 2024 11:19:26 +0200 Subject: Reformatted com_say() --- FICS/talkproc.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'FICS') diff --git a/FICS/talkproc.c b/FICS/talkproc.c index b3486a9..28ed987 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -576,17 +576,20 @@ PUBLIC int com_xtell(int p, param_list param) return COM_OK; } -PUBLIC int com_say(int p, param_list param) +PUBLIC int +com_say(int p, param_list param) { - if (parray[p].opponent < 0) { - if (parray[p].last_opponent < 0) { - pprintf(p, "No one to say anything to, try tell.\n"); - return COM_OK; - } else { - return tell(p, parray[p].last_opponent, param[0].val.string, TELL_SAY, 0); - } - } - return tell(p, parray[p].opponent, param[0].val.string, TELL_SAY, 0); + if (parray[p].opponent < 0) { + if (parray[p].last_opponent < 0) { + pprintf(p, "No one to say anything to, try tell.\n"); + return COM_OK; + } else { + return tell(p, parray[p].last_opponent, + param[0].val.string, TELL_SAY, 0); + } + } + + return tell(p, parray[p].opponent, param[0].val.string, TELL_SAY, 0); } PUBLIC int -- cgit v1.2.3