mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-17 05:08:06 +01:00
Just some cosmetic code cleanup
This commit is contained in:
parent
12c506c89a
commit
58ec913b46
12 changed files with 230 additions and 254 deletions
|
|
@ -26,15 +26,15 @@ static bool legal_communication(char * arg);
|
|||
|
||||
static bool legal_communication(char * arg)
|
||||
{
|
||||
while (*arg) {
|
||||
if (*arg == '@') {
|
||||
arg++;
|
||||
if (*arg == '(' || *arg == ')' || *arg == '<' || *arg == '>')
|
||||
return FALSE;
|
||||
}
|
||||
arg++;
|
||||
}
|
||||
return TRUE;
|
||||
while (*arg) {
|
||||
if (*arg == '@') {
|
||||
arg++;
|
||||
if (*arg == '(' || *arg == ')' || *arg == '<' || *arg == '>')
|
||||
return FALSE;
|
||||
}
|
||||
arg++;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
ACMD(do_say)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue