summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-06-02 01:35:15 +0200
committerlouiz’ <louiz@louiz.org>2016-06-08 01:42:43 +0200
commit507d0c2cbe3c41e3d8e6d38862fe418cb551adf3 (patch)
tree17eb49de3e6d4456c3f4b2f9d187e6c8485f37a7 /src/irc
parent66609cfba2b581be52de6096193751d1bb4ec3c3 (diff)
downloadbiboumi-507d0c2cbe3c41e3d8e6d38862fe418cb551adf3.tar.gz
biboumi-507d0c2cbe3c41e3d8e6d38862fe418cb551adf3.tar.bz2
biboumi-507d0c2cbe3c41e3d8e6d38862fe418cb551adf3.tar.xz
biboumi-507d0c2cbe3c41e3d8e6d38862fe418cb551adf3.zip
Forward everything to all concerned XMPP resources
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_channel.hpp2
-rw-r--r--src/irc/irc_client.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/irc_channel.hpp b/src/irc/irc_channel.hpp
index e22947b..3319505 100644
--- a/src/irc/irc_channel.hpp
+++ b/src/irc/irc_channel.hpp
@@ -31,6 +31,8 @@ public:
IrcUser* find_user(const std::string& name) const;
void remove_user(const IrcUser* user);
void remove_all_users();
+ const std::vector<std::unique_ptr<IrcUser>>& get_users() const
+ { return this->users; }
protected:
std::unique_ptr<IrcUser> self;
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 0b1b079..ae68528 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -701,7 +701,7 @@ void IrcClient::empty_motd(const IrcMessage&)
void IrcClient::on_empty_topic(const IrcMessage& message)
{
- const std::string chan_name = utils::tolower(message.arguments[message.arguments.size() - 1]);
+ const std::string chan_name = utils::tolower(message.arguments[1]);
log_debug("empty topic for " << chan_name);
IrcChannel* channel = this->get_channel(chan_name);
if (channel)