summaryrefslogtreecommitdiff
path: root/src/core/hs_on.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
commit308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch)
tree2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/core/hs_on.c
parent3d4cf39940144be19645a3a7cdecf95213b96f26 (diff)
We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/hs_on.c')
-rw-r--r--src/core/hs_on.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hs_on.c b/src/core/hs_on.c
index a9922e921..b1daf7275 100644
--- a/src/core/hs_on.c
+++ b/src/core/hs_on.c
@@ -25,7 +25,7 @@ class CommandHSOn : public Command
CommandReturn Execute(User *u, const std::vector<ci::string> &params)
{
NickAlias *na = findnick(u->nick);
- if (na && u->nc == na->nc && na->hostinfo.HasVhost())
+ if (na && u->Account() == na->nc && na->hostinfo.HasVhost())
{
if (!na->hostinfo.GetIdent().empty())
notice_lang(Config.s_HostServ, u, HOST_IDENT_ACTIVATED, na->hostinfo.GetIdent().c_str(), na->hostinfo.GetHost().c_str());