diff options
author | Adam <Adam@anope.org> | 2012-10-30 17:09:30 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-30 17:10:31 -0400 |
commit | 36f357c3547dee43f5f694f32878edd7a641c755 (patch) | |
tree | 17daf6db2e3c0b61afe35e9e58f6878700a7bd94 /modules/pseudoclients/memoserv.cpp | |
parent | b07928eea95dc2c12a2be8adfe804e2019881ee5 (diff) |
Fixed build errors and warnings with -std=c++11
Diffstat (limited to 'modules/pseudoclients/memoserv.cpp')
-rw-r--r-- | modules/pseudoclients/memoserv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pseudoclients/memoserv.cpp b/modules/pseudoclients/memoserv.cpp index faeeae1fc..9cfca1af3 100644 --- a/modules/pseudoclients/memoserv.cpp +++ b/modules/pseudoclients/memoserv.cpp @@ -72,7 +72,7 @@ class MyMemoServService : public MemoServService return MEMO_TOO_FAST; else if (!mi->memomax) return MEMO_TARGET_FULL; - else if (mi->memomax > 0 && mi->memos->size() >= mi->memomax) + else if (mi->memomax > 0 && mi->memos->size() >= static_cast<unsigned>(mi->memomax)) return MEMO_TARGET_FULL; else if (mi->HasIgnore(sender)) return MEMO_SUCCESS; @@ -147,9 +147,9 @@ class MyMemoServService : public MemoServService ++newcnt; if (newcnt > 0) u->SendMessage(ms, newcnt == 1 ? _("You have 1 new memo.") : _("You have %d new memos."), newcnt); - if (nc->memos.memomax > 0 && nc->memos.memos->size() >= nc->memos.memomax) + if (nc->memos.memomax > 0 && nc->memos.memos->size() >= static_cast<unsigned>(nc->memos.memomax)) { - if (nc->memos.memos->size() > nc->memos.memomax) + if (nc->memos.memos->size() > static_cast<unsigned>(nc->memos.memomax)) u->SendMessage(ms, _("You are over your maximum number of memos (%d). You will be unable to receive any new memos until you delete some of your current ones."), nc->memos.memomax); else u->SendMessage(ms, _("You have reached your maximum number of memos (%d). You will be unable to receive any new memos until you delete some of your current ones."), nc->memos.memomax); |