summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-27 21:30:16 -0400
committerAdam <Adam@anope.org>2010-08-27 21:30:16 -0400
commit56045afda2e34028ed36be5b4a67734493575290 (patch)
tree632fa880f9c950b67b6492440552adb1f8e17ce0 /modules
parentc2ddecc2b1dbc9d055166bdf296da2e4536f74f6 (diff)
Removed some problematic IsRecognized checks in ms_cancel and ms_check, and fixed a variable name in logger.cpp to make clang happy
Diffstat (limited to 'modules')
-rw-r--r--modules/core/ms_cancel.cpp4
-rw-r--r--modules/core/ms_check.cpp7
2 files changed, 2 insertions, 9 deletions
diff --git a/modules/core/ms_cancel.cpp b/modules/core/ms_cancel.cpp
index 60fd01ca2..da31c3261 100644
--- a/modules/core/ms_cancel.cpp
+++ b/modules/core/ms_cancel.cpp
@@ -28,9 +28,7 @@ class CommandMSCancel : public Command
Anope::string name = params[0];
MemoInfo *mi;
- if (!u->IsRecognized())
- notice_lang(Config->s_MemoServ, u, NICK_IDENTIFY_REQUIRED, Config->s_NickServ.c_str());
- else if (!(mi = getmemoinfo(name, ischan, isforbid)))
+ if (!(mi = getmemoinfo(name, ischan, isforbid)))
{
if (isforbid)
notice_lang(Config->s_MemoServ, u, ischan ? CHAN_X_FORBIDDEN : NICK_X_FORBIDDEN, name.c_str());
diff --git a/modules/core/ms_check.cpp b/modules/core/ms_check.cpp
index 53b497702..b0f3b7feb 100644
--- a/modules/core/ms_check.cpp
+++ b/modules/core/ms_check.cpp
@@ -29,12 +29,7 @@ class CommandMSCheck : public Command
struct tm *tm;
char timebuf[64];
- if (!u->IsRecognized())
- {
- notice_lang(Config->s_MemoServ, u, NICK_IDENTIFY_REQUIRED, Config->s_NickServ.c_str());
- return MOD_CONT;
- }
- else if (!(na = findnick(recipient)))
+ if (!(na = findnick(recipient)))
{
notice_lang(Config->s_MemoServ, u, NICK_X_NOT_REGISTERED, recipient.c_str());
return MOD_CONT;