1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Fix webcpanel/memoserv/memos with a nonexistent channel

This commit is contained in:
Adam
2015-07-31 18:26:49 -04:00
parent e65a22ae9d
commit d95189a4d8
+3 -3
View File
@@ -41,15 +41,15 @@ bool WebCPanel::MemoServ::Memos::OnRequest(HTTPProvider *server, const Anope::st
{
replacements["MESSAGES"] = "Displaying the memos for " + chname + ".";
mi = &ci->memos;
replacements["CHANNEL_NAME"] = ci->name;
replacements["ESCAPED_CHANNEL_NAME"] = HTTPUtils::URLEncode(ci->name);
}
else
{
replacements["MESSAGES"] = "Channel " + chname + " not found, displaying the memos for your nick";
mi = &na->nc->memos;
}
replacements["CHANNEL_NAME"] = ci->name;
replacements["ESCAPED_CHANNEL_NAME"] = HTTPUtils::URLEncode(ci->name);
}
if (message.post_data.count("receiver") > 0 && message.post_data.count("message") > 0)
{