summaryrefslogtreecommitdiff
path: root/modules/commands/ms_list.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-21 22:31:16 -0500
committerAdam <Adam@anope.org>2013-01-21 22:31:16 -0500
commitddaa001dafb5122e6e363e4acbbe6ce045b7b104 (patch)
tree0364a76606ac6e2881ebd663601ce260f7c1101e /modules/commands/ms_list.cpp
parent51c049e1a738e9124bab3961f35b830906517421 (diff)
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
Diffstat (limited to 'modules/commands/ms_list.cpp')
-rw-r--r--modules/commands/ms_list.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/ms_list.cpp b/modules/commands/ms_list.cpp
index ccbb99cb1..3181f9dff 100644
--- a/modules/commands/ms_list.cpp
+++ b/modules/commands/ms_list.cpp
@@ -85,7 +85,7 @@ class CommandMSList : public Command
const Memo *m = mi->GetMemo(number);
ListFormatter::ListEntry entry;
- entry["Number"] = (m->HasFlag(MF_UNREAD) ? "* " : " ") + stringify(number + 1);
+ entry["Number"] = (m->unread ? "* " : " ") + stringify(number + 1);
entry["Sender"] = m->sender;
entry["Date/Time"] = Anope::strftime(m->time);
this->list.AddEntry(entry);
@@ -100,7 +100,7 @@ class CommandMSList : public Command
{
unsigned i, end;
for (i = 0, end = mi->memos->size(); i < end; ++i)
- if (mi->GetMemo(i)->HasFlag(MF_UNREAD))
+ if (mi->GetMemo(i)->unread)
break;
if (i == end)
{
@@ -114,13 +114,13 @@ class CommandMSList : public Command
for (unsigned i = 0, end = mi->memos->size(); i < end; ++i)
{
- if (!param.empty() && !mi->GetMemo(i)->HasFlag(MF_UNREAD))
+ if (!param.empty() && !mi->GetMemo(i)->unread)
continue;
const Memo *m = mi->GetMemo(i);
ListFormatter::ListEntry entry;
- entry["Number"] = (m->HasFlag(MF_UNREAD) ? "* " : " ") + stringify(i + 1);
+ entry["Number"] = (m->unread ? "* " : " ") + stringify(i + 1);
entry["Sender"] = m->sender;
entry["Date/Time"] = Anope::strftime(m->time);
list.AddEntry(entry);