summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/core/bs_bot.c14
-rw-r--r--version.log6
3 files changed, 14 insertions, 7 deletions
diff --git a/Changes b/Changes
index 806afe167..726652ed8 100644
--- a/Changes
+++ b/Changes
@@ -54,6 +54,7 @@ Provided by Trystan <trystan@nomadirc.net> - 2006
03/18 A New icon file for anope win32. [#472]
03/14 A Anope will now terminate on Win98. Added version check. [#473]
03/01 A Clarity on module loading status numbers. [#435]
+03/24 F Fixed segfault on /bs change. [#483]
03/22 F Fixed distclean in all Makefiles. [#481]
03/19 F Fixed some gcc4 compiling issues. [#453]
03/18 F Fixed closing of file pointer in langtool.c. [#478]
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index eaf66b9c8..7ada659c6 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -197,7 +197,7 @@ int do_bot(User * u)
notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, oldnick);
else if (strlen(nick) > NickLen)
notice_lang(s_BotServ, u, BOT_BAD_NICK);
- else if (strlen(user) >= USERMAX)
+ else if (user && strlen(user) >= USERMAX)
notice_lang(s_BotServ, u, BOT_BAD_IDENT);
else {
NickAlias *na;
@@ -242,15 +242,17 @@ int do_bot(User * u)
return MOD_CONT;
}
- if (!isValidHost(host, 3)) {
+ if (host && !isValidHost(host, 3)) {
notice_lang(s_BotServ, u, BOT_BAD_HOST);
return MOD_CONT;
}
- for (ch = user; *ch && (ch - user) < USERMAX; ch++) {
- if (!isalnum(*ch)) {
- notice_lang(s_BotServ, u, BOT_BAD_IDENT);
- return MOD_CONT;
+ if (user) {
+ for (ch = user; *ch && (ch - user) < USERMAX; ch++) {
+ if (!isalnum(*ch)) {
+ notice_lang(s_BotServ, u, BOT_BAD_IDENT);
+ return MOD_CONT;
+ }
}
}
diff --git a/version.log b/version.log
index a0fe21d1e..e7f379e88 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA="-rc1"
-VERSION_BUILD="1021"
+VERSION_BUILD="1022"
# $Log$
#
+# BUILD : 1.7.14 (1022)
+# BUGS : 483
+# NOTES : important seg fix
+#
# BUILD : 1.7.14 (1021)
# BUGS :
# NOTES : Anope 1.7.14 RC1