summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-11-19 17:56:11 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-11-19 17:56:11 +0000
commita4c34ef876480a6a50079575cedca6899e5c2840 (patch)
tree0ec6005d52fb7b067b06275cc08e96c15b3b7a01 /src
parent1303b4971acd90cd009265b7c0be05254e1f359d (diff)
BUILD : 1.7.6 (451) BUGS : 221 NOTES : Fixes for wrong string for bot nick registration check, and added the check to bot change
git-svn-id: svn://svn.anope.org/anope/trunk@451 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@305 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/botserv.c b/src/botserv.c
index 0faa9749a..e0cd346ba 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -1262,7 +1262,7 @@ static int do_bot(User * u)
* it as a bot nick from now on -GD
*/
if ((na = findnick(nick))) {
- notice_lang(s_BotServ, u, NICK_X_IN_USE, nick);
+ notice_lang(s_BotServ, u, NICK_ALREADY_REGISTERED, nick);
return MOD_CONT;
}
@@ -1368,9 +1368,15 @@ static int do_bot(User * u)
anope_cmd_unsqline(bi->nick);
}
- /* We check whether the nick is registered, and drop it if so */
- if ((na = findnick(nick)))
- delnick(na);
+ /* We check whether the nick is registered, and inform the user
+ * if so. You need to drop the nick manually before you can use
+ * it as a bot nick from now on -GD
+ */
+ if ((na = findnick(nick))) {
+ notice_lang(s_BotServ, u, NICK_ALREADY_REGISTERED,
+ nick);
+ return MOD_CONT;
+ }
/* We check whether user with this nick is online, and kill it if so */
EnforceQlinedNick(nick, s_BotServ);