diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-22 19:34:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-22 19:34:06 +0000 |
commit | 6129f2e4a0c3bd50c3f9ff62c7dfd0b27ecdcc7f (patch) | |
tree | 287bdc416487c8b226b42cc52272abaa69b297b3 /src/inspircd.cpp | |
parent | 8aeb34aa15bfc32e8894c652f09673c2fb27a32f (diff) |
Added more services stuff
Added support for OnUserPreNick API command (used with qlines, etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@696 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f55a6f1b6..80909b312 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2356,7 +2356,15 @@ long map_count(const char* s) void force_nickchange(userrec* user,const char* newnick) { char nick[MAXBUF]; + int MOD_RESULT = 0; + strcpy(nick,""); + + FOREACH_RESULT(OnUserPreNick(user,newnick)); + if (MOD_RESULT) { + kill_link(user,"Nickname collision"); + return; + } if (user) { |