summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-07 14:07:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-07 14:07:41 +0000
commitcb947156cc40a4eff0dc95e6e232c057e0c20220 (patch)
treeac8558f70db190068651c2d95f504de7746b26de
parentf452a340a8a2917f67e98ebbcc12a51531e11ad3 (diff)
Support 501 numeric (its different for user modes compared to channel modes) - thanks anmaster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8134 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 421183740..acfd16da9 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -604,7 +604,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
else
{
/* No mode handler? Unknown mode character then. */
- user->WriteServ("472 %s %c :is unknown mode char to me",user->nick, modechar);
+ user->WriteServ("%d %s %c :is unknown mode char to me", type == MODETYPE_CHANNEL ? 472 : 501, user->nick, modechar);
}
break;
}