summaryrefslogtreecommitdiff
path: root/modules/core/ms_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-14 13:52:26 -0400
committerAdam <Adam@anope.org>2011-03-14 13:52:26 -0400
commited73d7675152ccc66f20daedca8586a8de254a84 (patch)
tree18f7a1a53a717f24d061550c6670ca6f0ed54f9f /modules/core/ms_set.cpp
parent4fe49af8401b956249d924b89b3e69bce5fb6744 (diff)
Rewrote some of the opertype system, added os_login
Diffstat (limited to 'modules/core/ms_set.cpp')
-rw-r--r--modules/core/ms_set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/ms_set.cpp b/modules/core/ms_set.cpp
index ecd436079..82524551d 100644
--- a/modules/core/ms_set.cpp
+++ b/modules/core/ms_set.cpp
@@ -78,7 +78,7 @@ class CommandMSSet : public Command
int16 limit;
NickCore *nc = u->Account();
ChannelInfo *ci = NULL;
- bool is_servadmin = u->Account()->HasPriv("memoserv/set-limit");
+ bool is_servadmin = u->HasPriv("memoserv/set-limit");
if (p1[0] == '#')
{
@@ -258,7 +258,7 @@ class CommandMSSet : public Command
else if (subcommand.equals_ci("LIMIT"))
{
User *u = source.u;
- if (u->Account() && u->Account()->IsServicesOper())
+ if (u->IsServicesOper())
source.Reply(_("Syntax: \002SET LIMIT [\037user\037 | \037channel\037] {\037limit\037 | NONE} [HARD]\002\n"
" \n"
"Sets the maximum number of memos a user or channel is\n"