summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-22 19:34:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-22 19:34:06 +0000
commit6129f2e4a0c3bd50c3f9ff62c7dfd0b27ecdcc7f (patch)
tree287bdc416487c8b226b42cc52272abaa69b297b3 /src/inspircd.cpp
parent8aeb34aa15bfc32e8894c652f09673c2fb27a32f (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.cpp8
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)
{