aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Plášil <me@rplasil.name>2017-11-10 17:36:54 +0800
committerRoman Plášil <me@rplasil.name>2017-11-10 17:36:54 +0800
commit27bec8d012b6310bf1f23c1c879232a841605f60 (patch)
treed6793ed20bf209d144d9cf40db958a1e6ddb3f6a
parentfa3bffd340ac512fbab77a05f10d2bf167ca2cc0 (diff)
downloadlibquotient-27bec8d012b6310bf1f23c1c879232a841605f60.tar.gz
libquotient-27bec8d012b6310bf1f23c1c879232a841605f60.zip
Fix (IRC) bridge detection
-rw-r--r--user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.cpp b/user.cpp
index 8c8a7fdb..dea75360 100644
--- a/user.cpp
+++ b/user.cpp
@@ -115,7 +115,7 @@ void User::processEvent(Event* event)
auto newName = e->displayName();
QRegularExpression reSuffix(" \\((IRC|Gitter)\\)$");
- auto match = reSuffix.match(d->name);
+ auto match = reSuffix.match(newName);
if (match.hasMatch())
{
d->bridged = match.captured(1);