summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 88248e06a..1a5eb81d0 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -95,7 +95,7 @@ char* CleanFilename(char* name)
{
char* p = name + strlen(name);
while ((p != name) && (*p != '/')) p--;
- p != name ? return ++p : return p;
+ return (p != name ? ++p : p);
}
void handle_join(char **parameters, int pcnt, userrec *user)