diff options
author | Adam <Adam@anope.org> | 2010-11-30 03:02:33 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:37:02 -0500 |
commit | 0ba566491ea246fcc895862d0ef80bdf4ee43b4b (patch) | |
tree | 9852671d32476ddad58e264a8e074c41fef9f69f /modules/core/cs_status.cpp | |
parent | 2a4d57a1cacd22084abea5dd21c87dc733a7b5bf (diff) |
Allowing adding hostmasks to channel access lists
Diffstat (limited to 'modules/core/cs_status.cpp')
-rw-r--r-- | modules/core/cs_status.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/cs_status.cpp b/modules/core/cs_status.cpp index 899632bbf..a2a69b18e 100644 --- a/modules/core/cs_status.cpp +++ b/modules/core/cs_status.cpp @@ -26,8 +26,9 @@ class CommandCSStatus : public Command const Anope::string &nick = params[1]; User *u2 = finduser(nick); + ChanAccess *u2_access = ci->GetAccess(u2); if (u2) - source.Reply(CHAN_STATUS_INFO, ci->name.c_str(), u2->nick.c_str(), get_access(u2, ci)); + source.Reply(CHAN_STATUS_INFO, ci->name.c_str(), u2->nick.c_str(), u2_access ? u2_access->level : 0); else /* !u2 */ source.Reply(CHAN_STATUS_NOTONLINE, nick.c_str()); return MOD_CONT; |