summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index f6433e88a..88248e06a 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -91,6 +91,13 @@ extern userrec* fd_ref_table[65536];
extern serverstats* stats;
+char* CleanFilename(char* name)
+{
+ char* p = name + strlen(name);
+ while ((p != name) && (*p != '/')) p--;
+ p != name ? return ++p : return p;
+}
+
void handle_join(char **parameters, int pcnt, userrec *user)
{
chanrec* Ptr;