Commit 5b79cf8c authored by Cathy J. Fitzpatrick's avatar Cathy J. Fitzpatrick Committed by Eike Hein
Browse files

Fix for setting mode +a or -a

Previously, setting or removing mode +a on a nick in a channel called
ChannelNick::setOwner(), so setting +a on a nick made the nick appear
as an owner of the channel, rather than as an admin. This commit
fixes the problem by correctly calling ChannelNick::setAdmin() instead.

CCBUG:153580
parent 0a0bb185
...@@ -1495,7 +1495,7 @@ void Channel::updateMode(const QString& sourceNick, char mode, bool plus, const ...@@ -1495,7 +1495,7 @@ void Channel::updateMode(const QString& sourceNick, char mode, bool plus, const
} }
if (parameterChannelNick) if (parameterChannelNick)
{ {
parameterChannelNick->setOwner(plus); parameterChannelNick->setAdmin(plus);
emitUpdateInfo(); emitUpdateInfo();
} }
break; break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment