summaryrefslogtreecommitdiff
path: root/modules/commands/ms_info.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-01 22:17:52 -0400
committerAdam <Adam@anope.org>2013-07-01 22:17:52 -0400
commit1a3d9a016d3adc49788bbff73aac9b3b5ea85b17 (patch)
treec0ecf92ed768473bc82ff64a7fce827245f37ba9 /modules/commands/ms_info.cpp
parent518182ac9204f815258b0de91b3f884d8efa1502 (diff)
Change extensible keys to require explicitly having a type defined for it. Completely modularize more features like bs_kick, entrymsg, log, mode, etc. Move fantasy to its own module. Move greet to its own module.
Diffstat (limited to 'modules/commands/ms_info.cpp')
-rw-r--r--modules/commands/ms_info.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/commands/ms_info.cpp b/modules/commands/ms_info.cpp
index 67a504117..909ff4c82 100644
--- a/modules/commands/ms_info.cpp
+++ b/modules/commands/ms_info.cpp
@@ -27,7 +27,7 @@ class CommandMSInfo : public Command
const NickAlias *na = NULL;
ChannelInfo *ci = NULL;
const Anope::string &nname = !params.empty() ? params[0] : "";
- int hardmax = 0;
+ bool hardmax;
if (!nname.empty() && nname[0] != '#' && source.HasPriv("memoserv/info"))
{
@@ -38,7 +38,7 @@ class CommandMSInfo : public Command
return;
}
mi = &na->nc->memos;
- hardmax = na->nc->HasExt("MEMO_HARDMAX") ? 1 : 0;
+ hardmax = na->nc->HasExt("MEMO_HARDMAX");
}
else if (!nname.empty() && nname[0] == '#')
{
@@ -54,7 +54,7 @@ class CommandMSInfo : public Command
return;
}
mi = &ci->memos;
- hardmax = ci->HasExt("MEMO_HARDMAX") ? 1 : 0;
+ hardmax = ci->HasExt("MEMO_HARDMAX");
}
else if (!nname.empty()) /* It's not a chan and we aren't services admin */
{
@@ -64,7 +64,7 @@ class CommandMSInfo : public Command
else
{
mi = &nc->memos;
- hardmax = nc->HasExt("MEMO_HARDMAX") ? 1 : 0;
+ hardmax = nc->HasExt("MEMO_HARDMAX");
}
if (!nname.empty() && (ci || na->nc != nc))
@@ -178,7 +178,6 @@ class CommandMSInfo : public Command
else
source.Reply(_("You will not be notified of new memos."));
}
- return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override