summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-17 01:43:58 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-17 01:43:58 +0100
commitcf9f3a1f2855b358aa9bbc31f234801e9e1efc28 (patch)
treea89ac719df9cd7cbd4fa02e1994ce7eb34180f43 /src/irc
parentabcf16bc28a5f72d9e7f964a5f2b432f55dfe5b6 (diff)
downloadbiboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.tar.gz
biboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.tar.bz2
biboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.tar.xz
biboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.zip
Include role and affiliation in the join presence of the nick change process
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index a84f96e..bb2fc75 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -469,8 +469,9 @@ void IrcClient::on_nick(const IrcMessage& message)
Iid iid;
iid.chan = chan_name;
iid.server = this->hostname;
- bool self = channel->get_self()->nick == old_nick;
- this->bridge->send_nick_change(std::move(iid), old_nick, new_nick, self);
+ const bool self = channel->get_self()->nick == old_nick;
+ const char user_mode = user->get_most_significant_mode(this->sorted_user_modes);
+ this->bridge->send_nick_change(std::move(iid), old_nick, new_nick, user_mode, self);
user->nick = new_nick;
if (self)
{