1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 03:23:13 +02:00

Fixed formatting of many lists and INFO outputs

This commit is contained in:
Adam
2011-12-19 15:37:15 -05:00
parent d320c73f23
commit 45fc3ce1c4
35 changed files with 1334 additions and 1190 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ class CSSetMisc : public Module
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnChanInfo(CommandSource &source, ChannelInfo *ci, bool ShowHidden)
void OnChanInfo(CommandSource &source, ChannelInfo *ci, InfoFormatter &info, bool ShowHidden)
{
std::deque<Anope::string> list;
ci->GetExtList(list);
@@ -127,7 +127,7 @@ class CSSetMisc : public Module
CSMiscData *data = ci->GetExt<CSMiscData *>(list[i]);
if (data != NULL)
source.Reply(" %s: %s", list[i].substr(12).replace_all_cs("_", " ").c_str(), data->data.c_str());
info[list[i].substr(12).replace_all_cs("_", " ")] = data->data;
}
}
};