From 717e1a1d58ec09078f2fd487cb9daa0b5075e44b Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 18 Sep 2005 14:50:57 +0000 Subject: 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 --- src/actions.c | 4 ++++ src/core/ns_info.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index 5ced638c6..e9c70ae52 100644 --- a/src/actions.c +++ b/src/actions.c @@ -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; } diff --git a/src/core/ns_info.c b/src/core/ns_info.c index bb4c613ac..5037dd1c7 100644 --- a/src/core/ns_info.c +++ b/src/core/ns_info.c @@ -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, -- cgit