summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 19:53:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 19:53:16 +0000
commit1bc693d37b068d5dedb4fa51a43ffbee75ce5050 (patch)
treebe6a7e5465221efe07ac3457980a9c3f6b24459c /src/mode.cpp
parent644b87f4a073f3450e1c8299ae9c33f11073de45 (diff)
Fixes to all kinds of annoying problems
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1220 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 1d94e3c40..4be550f99 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -546,6 +546,8 @@ void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int
log(DEBUG,"process_modes: modelist: %s",modelist);
int len = strlen(modelist);
+ while (modelist[len-1] == ' ')
+ modelist[--len] = '\0';
for (ptr = 0; ptr < len; ptr++)
{
r = NULL;