X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;fp=src%2Fcore%2Fcorenetwork.cpp;h=395cb7a30e5a2c97849f1842b7c08e5dba7bde0e;hp=fcafde47935ea5326bb0d0c9188df4d04fc143d9;hb=b33ea3ad0598e43621f3923e0fbc01e87b9b0031;hpb=cdc6091a2e02b84a48937cda287a0769ceb8726a diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index fcafde47..395cb7a3 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -1322,6 +1322,16 @@ void CoreNetwork::queueAutoWhoOneshot(const QString &channelOrNick) } +void CoreNetwork::cancelAutoWhoOneshot(const QString &channelOrNick) +{ + // Remove channel/nick from queue if it exists + _autoWhoQueue.removeAll(channelOrNick); + + // The AutoWho timer will detect if the queue is empty and automatically stop, no need to + // manually control it. +} + + void CoreNetwork::setAutoWhoDelay(int delay) { _autoWhoTimer.setInterval(delay * 1000);