diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-01 12:21:17 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-01 12:21:17 -0400 |
| commit | 1175ef320e25919746cafda6c8aaa57c5adc1860 (patch) | |
| tree | 64ce7af84e42a38207e24e1fec189fcc2ee3d9c6 /modules/core | |
| parent | 11663765e2cb5d186afbf4a0fbaeeebc2225375f (diff) | |
Cleanup in memoserv.cpp.
Diffstat (limited to 'modules/core')
| -rw-r--r-- | modules/core/ms_cancel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/ms_cancel.cpp b/modules/core/ms_cancel.cpp index 3a170d812..f246c02f5 100644 --- a/modules/core/ms_cancel.cpp +++ b/modules/core/ms_cancel.cpp @@ -24,14 +24,13 @@ class CommandMSCancel : public Command CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms) { - 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()); |
