summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-01-08 14:41:19 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-01-08 14:41:19 +0000
commit73df6da75cd87bceb3fd62d9a369da88b35a3112 (patch)
tree336b1d3b2555b6e1ba3913392ae85d58aacc3f4b
parent7db7984a21aea724790cd7a19157d548f7bca9c5 (diff)
BUILD : 1.7.7 (530) BUGS : N/A NOTES : Fixed /ns status to be consistant with what help reports it will do.
git-svn-id: svn://svn.anope.org/anope/trunk@530 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@384 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--src/nickserv.c9
-rw-r--r--version.log6
3 files changed, 12 insertions, 4 deletions
diff --git a/Changes b/Changes
index 9e5a5bffc..443d41290 100644
--- a/Changes
+++ b/Changes
@@ -16,6 +16,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004/2005
11/19 A Added anope_cmd_ctcp() to code API, for sending CTCP messages. [ #00]
11/18 A Unable to use registered nicknames as bot nicks from now on. [ #00]
11/18 A NSAddAccessOnReg to control access list on registration. [ #00]
+01/08 F /NS Status always returns 0 for unregisterd nicks like help says [ #00]
01/07 F Fixed example.conf syntax mistake. [ #00]
01/06 F Possible crash using memoserv. [#269]
01/05 F Few updates to Dutch language file (nl.l). [ #00]
diff --git a/src/nickserv.c b/src/nickserv.c
index 1bd14e947..360e712a2 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -4059,6 +4059,7 @@ static int do_ghost(User * u)
static int do_status(User * u)
{
User *u2;
+ NickAlias *na = NULL;
int i = 0;
char *nick = strtok(NULL, " ");
@@ -4068,12 +4069,14 @@ static int do_status(User * u)
nick = u->nick;
while (nick && (i++ < 16)) {
- if (!(u2 = finduser(nick)))
+ if (!(u2 = finduser(nick))) /* Nick is not online */
notice_lang(s_NickServ, u, NICK_STATUS_0, nick);
- else if (nick_identified(u2))
+ else if (nick_identified(u2)) /* Nick is identified */
notice_lang(s_NickServ, u, NICK_STATUS_3, nick);
- else if (nick_recognized(u2))
+ else if (nick_recognized(u2)) /* Nick is recognised, but NOT identified */
notice_lang(s_NickServ, u, NICK_STATUS_2, nick);
+ else if ((na = findnick(nick)) == NULL) /* Nick is online, but NOT a registered */
+ notice_lang(s_NickServ, u, NICK_STATUS_0, nick);
else
notice_lang(s_NickServ, u, NICK_STATUS_1, nick);
diff --git a/version.log b/version.log
index 0af5e731c..f8ad29418 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="7"
-VERSION_BUILD="529"
+VERSION_BUILD="530"
# $Log$
#
+# BUILD : 1.7.7 (530)
+# BUGS : N/A
+# NOTES : Fixed /ns status to be consistant with what help reports it will do.
+#
# BUILD : 1.7.7 (529)
# BUGS :
# NOTES : Fixed example.conf syntax error, token was space and not comma space.