summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-30 18:24:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-30 18:24:20 +0300
commit99f0bd06f130d7fdeafc2f2ce7ae5ddf0876ea7d (patch)
treeb1952687b9965cb558b11b4defb6fbf265258fe6 /protocols/IRCG
parentf4ca42f246b994653e79287bce78ae6b2f9187ba (diff)
IRC: fix for the 10-yrs-old bug with displaying own messages with %%
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/src/commandmonitor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp
index 25a6dd90c3..49bd0e0a3d 100644
--- a/protocols/IRCG/src/commandmonitor.cpp
+++ b/protocols/IRCG/src/commandmonitor.cpp
@@ -708,11 +708,8 @@ bool CIrcProto::OnIrc_PRIVMSG(const CIrcMessage *pmsg)
}
if (bIsChannel) {
- if (!(pmsg->m_bIncoming && m_ignore && IsIgnored(pmsg->prefix.sNick, pmsg->prefix.sUser, pmsg->prefix.sHost, 'm'))) {
- if (!pmsg->m_bIncoming)
- mess.Replace(L"%%", L"%");
+ if (!(pmsg->m_bIncoming && m_ignore && IsIgnored(pmsg->prefix.sNick, pmsg->prefix.sUser, pmsg->prefix.sHost, 'm')))
DoEvent(GC_EVENT_MESSAGE, pmsg->parameters[0], pmsg->m_bIncoming ? pmsg->prefix.sNick : m_info.sNick, mess, nullptr, nullptr, NULL, true, pmsg->m_bIncoming ? false : true);
- }
return true;
}
}