diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-04-14 11:19:26 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-04-14 11:19:26 +0200 |
commit | b9e880f428dcbc3cc7ebe7abd1f5e19e985e5ef9 (patch) | |
tree | 5719fd1508eaed9375707a6aca4a0c3c0bb3bc16 /FICS | |
parent | a511d3298000b07275ee78babcb3ab9f6104ac31 (diff) |
Reformatted com_say()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/talkproc.c | 23 |
1 files changed, 13 insertions, 10 deletions
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 |