diff options
author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
tree | e145e04fa3d041cf92ce46da4ac790b63231059c /modules/commands/cs_mode.cpp | |
parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) |
Reworked live SQL support yet again
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index c9d7c112a..425a54a01 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -151,7 +151,7 @@ class CommandCSMode : public Command } else if (subcommand.equals_ci("LIST")) { - const std::multimap<ChannelModeName, ModeLock> &mlocks = ci->GetMLock(); + const ChannelInfo::ModeList &mlocks = ci->GetMLock(); if (mlocks.empty()) { source.Reply(_("Channel %s has no mode locks."), ci->name.c_str()); @@ -161,18 +161,18 @@ class CommandCSMode : public Command ListFormatter list; list.addColumn("Mode").addColumn("Param").addColumn("Creator").addColumn("Created"); - for (std::multimap<ChannelModeName, ModeLock>::const_iterator it = mlocks.begin(), it_end = mlocks.end(); it != it_end; ++it) + for (ChannelInfo::ModeList::const_iterator it = mlocks.begin(), it_end = mlocks.end(); it != it_end; ++it) { - const ModeLock &ml = it->second; - ChannelMode *cm = ModeManager::FindChannelModeByName(ml.name); + const ModeLock *ml = it->second; + ChannelMode *cm = ModeManager::FindChannelModeByName(ml->name); if (!cm) continue; ListFormatter::ListEntry entry; - entry["Mode"] = Anope::printf("%c%c", ml.set ? '+' : '-', cm->ModeChar); - entry["Param"] = ml.param; - entry["Creator"] = ml.setter; - entry["Created"] = do_strftime(ml.created, source.u->Account(), false); + entry["Mode"] = Anope::printf("%c%c", ml->set ? '+' : '-', cm->ModeChar); + entry["Param"] = ml->param; + entry["Creator"] = ml->setter; + entry["Created"] = do_strftime(ml->created, source.u->Account(), false); list.addEntry(entry); } |