diff options
-rw-r--r-- | modules/core/cs_xop.cpp | 2 | ||||
-rw-r--r-- | src/chanserv.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/cs_xop.cpp b/modules/core/cs_xop.cpp index 38c82d183..19dce6bd4 100644 --- a/modules/core/cs_xop.cpp +++ b/modules/core/cs_xop.cpp @@ -306,7 +306,7 @@ class XOPBase : public Command if (!SentHeader) { SentHeader = true; - source.Reply(_("%s list for %s:\n Num Nick"), ci->name.c_str()); + source.Reply(_("%s list for %s:\n Num Nick"), this->name.c_str(), ci->name.c_str()); } XOPListCallback::DoList(source, access, i + 1, level); diff --git a/src/chanserv.cpp b/src/chanserv.cpp index de43bb91c..6a5d92ad0 100644 --- a/src/chanserv.cpp +++ b/src/chanserv.cpp @@ -433,7 +433,7 @@ void cs_remove_nick(NickCore *nc) { ChanAccess *ca = ci->GetAccess(j); - if (!ca->nc->IsServicesOper() && Config->CSMaxReg && ca->nc->channelcount >= Config->CSMaxReg) + if (!ca->nc || (!ca->nc->IsServicesOper() && Config->CSMaxReg && ca->nc->channelcount >= Config->CSMaxReg)) continue; if (!highest || ca->level > highest->level) highest = ca; |