summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-06 18:33:44 -0400
committerAdam <Adam@anope.org>2011-08-06 18:33:44 -0400
commitc3e9fc4a8d75d69db24e6e67b2a99b5bacf72716 (patch)
tree9047b2a3624a5deb478fac08ce7f86e5e05012e5
parent66ab59d163b1162bac11c153d212d0c38b1e2801 (diff)
Show channel founders their channels in /ns alist
-rw-r--r--modules/commands/ns_alist.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/commands/ns_alist.cpp b/modules/commands/ns_alist.cpp
index f502b4344..179fa745a 100644
--- a/modules/commands/ns_alist.cpp
+++ b/modules/commands/ns_alist.cpp
@@ -39,12 +39,18 @@ class CommandNSAList : public Command
int chan_count = 0;
source.Reply(_("Channels that \002%s\002 has access on:\n"
- " Num Channel Level"), na->nick.c_str());
+ " Num Channel Access"), na->nick.c_str());
for (registered_channel_map::const_iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end; ++it)
{
ChannelInfo *ci = it->second;
+ if (ci->GetFounder() && ci->GetFounder() == na->nc)
+ {
+ source.Reply(_(" %3d %c%-20s Founder"), ++chan_count, ci->HasFlag(CI_NO_EXPIRE) ? '!' : ' ', ci->name.c_str());
+ continue;
+ }
+
AccessGroup access = ci->AccessFor(na->nc);
if (access.empty())
continue;