summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-02-26 05:02:08 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-02-26 05:02:08 +0100
commitc01befb054075ab414fd602859e5999a138aa5bf (patch)
tree37e521b9f3cc678d2cc994e2ec5f39da6ef79232 /src/irc
parent6a2240f5935a4608e651a33c39219e912c9ea9ba (diff)
downloadbiboumi-c01befb054075ab414fd602859e5999a138aa5bf.tar.gz
biboumi-c01befb054075ab414fd602859e5999a138aa5bf.tar.bz2
biboumi-c01befb054075ab414fd602859e5999a138aa5bf.tar.xz
biboumi-c01befb054075ab414fd602859e5999a138aa5bf.zip
Implement room discovery using the LIST irc command
ref #2472
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp5
-rw-r--r--src/irc/irc_client.hpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index f83b48c..dedb5de 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -196,6 +196,11 @@ void IrcClient::send_kick_command(const std::string& chan_name, const std::strin
this->send_message(IrcMessage("KICK", {chan_name, target, reason}));
}
+void IrcClient::send_list_command()
+{
+ this->send_message(IrcMessage("LIST", {}));
+}
+
void IrcClient::send_topic_command(const std::string& chan_name, const std::string& topic)
{
this->send_message(IrcMessage("TOPIC", {chan_name, topic}));
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index 578fce2..86edbab 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -104,6 +104,10 @@ public:
* Send the KICK irc command
*/
void send_kick_command(const std::string& chan_name, const std::string& target, const std::string& reason);
+ /**
+ * Send the LIST irc command
+ */
+ void send_list_command();
void send_topic_command(const std::string& chan_name, const std::string& topic);
/**
* Send the QUIT irc command