summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
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)
{