From cb947156cc40a4eff0dc95e6e232c057e0c20220 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 7 Oct 2007 14:07:41 +0000 Subject: 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 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3