triggers reaction with :/,/! after bots nick only

master
const an teen 2021-12-13 22:59:18 -05:00
parent c187a5869f
commit 4bad7da2f1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}