1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 11:43:14 +02:00

Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9

This commit is contained in:
DukePyrolator
2010-08-01 18:39:06 +02:00
3 changed files with 35 additions and 49 deletions
+2 -3
View File
@@ -24,14 +24,13 @@ class CommandMSCancel : public Command
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
{
int ischan;
int isforbid;
bool ischan, isforbid;
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)))
else if (!(mi = getmemoinfo(name, ischan, isforbid)))
{
if (isforbid)
notice_lang(Config.s_MemoServ, u, ischan ? CHAN_X_FORBIDDEN : NICK_X_FORBIDDEN, name.c_str());