summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authordane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-21 17:23:46 +0000
committerdane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-21 17:23:46 +0000
commit09ca64b8899f8c11ee06271f04f0c3dbeb7bebe6 (patch)
tree29516cc8de72ca50602c16e86e851f47da88edd6 /misc.c
parent433f281f5e49ade17dcca6105afdbda6cd60a97f (diff)
BUILD : 1.7.3 (120) BUGS : 50 NOTES : Reserved nicks (Q-lined) will be KILLed if taken on induction.
git-svn-id: svn://svn.anope.org/anope/trunk@120 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@94 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 5bc22650e..358a4ad98 100644
--- a/misc.c
+++ b/misc.c
@@ -640,3 +640,16 @@ void doCleanBuffer(char *str)
}
*out = ch; // == '\0'
}
+
+void EnforceQlinedNick(char *nick, char *killer)
+{
+ User *u2;
+
+ if ((u2 = finduser(nick))) {
+ alog("Killed Q-lined nick: %s!%s@%s", u2->nick, u2->username,
+ u2->host);
+ kill_user(killer, u2->nick,
+ "This nick is reserved for Services. Please use a non Q-Lined nick.");
+ }
+
+}