1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 22:26:39 +02:00

Allowing adding hostmasks to channel access lists

This commit is contained in:
Adam
2010-11-30 03:02:33 -05:00
parent 2a4d57a1ca
commit 0ba566491e
24 changed files with 343 additions and 338 deletions
+2 -1
View File
@@ -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;