X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fnetsplit.cpp;h=b44c39d4932a368b152adcac72c3863b65359cdc;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hp=f86eef6c9542d1bf090eb7fb19c9c632b7ac9d48;hpb=921e54680da16fcf2adb7a90506875aceb6633a4;p=quassel.git diff --git a/src/core/netsplit.cpp b/src/core/netsplit.cpp index f86eef6c..b44c39d4 100644 --- a/src/core/netsplit.cpp +++ b/src/core/netsplit.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -117,7 +117,7 @@ bool Netsplit::isNetsplit(const QString &quitMessage) // now test if message consists only of two dns names as the RFC requests // but also allow the commonly used "*.net *.split" - QRegExp hostRx("^(?:[\\w\\d-.]+|\\*)\\.[\\w\\d-]+\\s(?:[\\w\\d-.]+|\\*)\\.[\\w\\d-]+$"); + QRegExp hostRx(R"(^(?:[\w\d-.]+|\*)\.[\w\d-]+\s(?:[\w\d-.]+|\*)\.[\w\d-]+$)"); if (hostRx.exactMatch(quitMessage)) return true;