From e5cee8399e5edd355419e08537a4cd5211f2ef83 Mon Sep 17 00:00:00 2001 From: acetone Date: Sun, 5 Mar 2023 10:18:38 +0300 Subject: [PATCH] auto request for channel mode flags --- src/libirc/libircclient/network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libirc/libircclient/network.cpp b/src/libirc/libircclient/network.cpp index 01d4309..45bc7f3 100644 --- a/src/libirc/libircclient/network.cpp +++ b/src/libirc/libircclient/network.cpp @@ -1639,6 +1639,8 @@ void Network::processJoin(Parser *parser, bool self_command) channel_p = new Channel(channel_name, this); this->channels.append(channel_p); emit this->Event_SelfJoin(channel_p); + // to get channel mode flags + this->RequestChannelList(channel_name); } } if (!channel_p) @@ -1786,7 +1788,6 @@ void Network::processChannelList(Parser *parser) static QRegularExpression modePayload("\\].*$"); text.remove('[').remove(modePayload); channel->SetMode(text); - qWarning() << parser->GetParameters() << text; } void Network::processWhoisUser(Parser &parser)