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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user