1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 05:43:13 +02:00

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
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-01-08 14:41:19 +00:00
parent 7db7984a21
commit 73df6da75c
3 changed files with 12 additions and 4 deletions
+6 -3
View File
@@ -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);