git.99rst.org
/
znc-palaver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8da5929
)
Allow nick matching if nick contains a word boundary
author
Kyle Fuller
<redacted>
Wed, 30 Sep 2015 23:10:49 +0000
(16:10 -0700)
committer
Kyle Fuller
<redacted>
Wed, 30 Sep 2015 23:10:49 +0000
(16:10 -0700)
Fixes #30
palaver.cpp
patch
|
blob
|
history
diff --git
a/palaver.cpp
b/palaver.cpp
index ebc829588417cee96960ab595cd1f0d113020973..a5784725fa9ca693f07424e9f75b24abca2a10b2 100644
(file)
--- a/
palaver.cpp
+++ b/
palaver.cpp
@@
-494,6
+494,14
@@
public:
bResult = true;
break;
}
+
+ // If that didn't match, and the keyword contains a word boundary
+ if (!bResult && (sKeyword.find("[") != std::string::npos || sKeyword.find("]") != std::string::npos)) {
+ if (sMessage.find(sKeyword) != std::string::npos) {
+ bResult = true;
+ break;
+ }
+ }
#else
if (sMessage.find(sKeyword) != std::string::npos) {
bResult = true;
git clone https://git.99rst.org/PROJECT