summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_blockcaps.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 88d7ab5f4..d45526df9 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -69,12 +69,18 @@ public:
{
int caps = 0;
const char* actstr = "\1ACTION ";
+ int act = 0;
for (std::string::iterator i = text.begin(); i != text.end(); i++)
{
/* Smart fix for suggestion from Jobe, ignore CTCP ACTION (part of /ME) */
- if (*actstr && *i == *actstr++)
+ if (*actstr && *i == *actstr++ && act != -1)
+ {
+ act++;
continue;
+ }
+ else
+ act = -1;
caps += capsmap[(unsigned char)*i];
}