diff options
| author | 2007-10-07 14:08:14 +0000 | |
|---|---|---|
| committer | 2007-10-07 14:08:14 +0000 | |
| commit | 68270082a4de8f9d8d27dc93b052ae70139121fe (patch) | |
| tree | c2b214218b5af66cea6affbe589daeb566f1a492 /src/mode.cpp | |
| parent | Fixed bug #434 (cycle allows bypassing modes for users outside of the channel... (diff) | |
Support 501 numeric (its different for user modes compared to channel modes) - thanks anmaster
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8135 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 755165421..f232cfd37 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -607,7 +607,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; } |
