mirror of https://notabug.org/acetone/ircabot.git
triggers reaction with :/,/! after bots nick only
parent
c187a5869f
commit
4bad7da2f1
|
@ -387,7 +387,7 @@ void IrcClient::process(const QString &message)
|
|||
myCurrentNick = m_connectionData.altNick;
|
||||
}
|
||||
|
||||
if (userMsg.startsWith(myCurrentNick)) {
|
||||
if (QRegularExpression("^"+myCurrentNick+"(:|,|!).*").match(userMsg).hasMatch()) {
|
||||
userMsg.remove(0, myCurrentNick.size());
|
||||
toTrigger(channel, nickname, userMsg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue