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

BUILD : 1.7.11 (890) BUGS : NOTES : Fixed common_get_vhost/vident to also return vhost/vident on ircds without usermode for vhost/vident

git-svn-id: svn://svn.anope.org/anope/trunk@890 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@637 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-09-18 14:50:57 +00:00
parent 05879f80d9
commit 717e1a1d58
4 changed files with 13 additions and 5 deletions
+4
View File
@@ -212,6 +212,8 @@ char *common_get_vhost(User * u)
if (ircd->vhostmode && (u->mode & ircd->vhostmode))
return u->vhost;
else if (ircd->vhost && u->vhost)
return u->vhost;
else
return u->host;
}
@@ -231,6 +233,8 @@ char *common_get_vident(User * u)
if (ircd->vhostmode && (u->mode & ircd->vhostmode))
return u->vident;
else if (ircd->vident && u->vident)
return u->vident;
else
return u->username;
}
-1
View File
@@ -161,7 +161,6 @@ int do_info(User * u)
}
if (nick_online) {
if (show_hidden || !(na->nc->flags & NI_HIDE_MASK))
notice_lang(s_NickServ, u, NICK_INFO_ADDRESS_ONLINE,