diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 18:12:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 18:12:47 +0000 |
commit | 9f05ef623a0ac11d57d5cc2e41a66714264d80d3 (patch) | |
tree | 3fc0650e724707cff2895c6725a8dbe8873729ae /src | |
parent | 0465fd1da7a7504f31e0c96fa1b77190ec658c32 (diff) |
Re-introduced 3-line function CleanFilename
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2486 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 7 |
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; |