summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-25 00:35:57 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-25 00:35:57 +0200
commit77a84fd2d99bcffd562f09c8235e5bcd365accb1 (patch)
tree1fb5c605ecd2a76bc4c4cdfe20dd24a3a3507cb4 /src/irc/irc_client.hpp
parent6ebb586b6ce097d5768e3863411042f4dc6c979e (diff)
downloadbiboumi-77a84fd2d99bcffd562f09c8235e5bcd365accb1.tar.gz
biboumi-77a84fd2d99bcffd562f09c8235e5bcd365accb1.tar.bz2
biboumi-77a84fd2d99bcffd562f09c8235e5bcd365accb1.tar.xz
biboumi-77a84fd2d99bcffd562f09c8235e5bcd365accb1.zip
NOTICE from channels are displayed in the channel, with a green "[notice]"
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r--src/irc/irc_client.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index 811d416..849190a 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -148,6 +148,10 @@ public:
*/
void on_channel_message(const IrcMessage& message);
/**
+ * A notice is received
+ */
+ void on_notice(const IrcMessage& message);
+ /**
* Save the topic in the IrcChannel
*/
void on_topic_received(const IrcMessage& message);
@@ -282,7 +286,7 @@ private:
typedef void (IrcClient::*irc_callback_t)(const IrcMessage&);
static const std::unordered_map<std::string, irc_callback_t> irc_callbacks = {
- {"NOTICE", &IrcClient::forward_server_message},
+ {"NOTICE", &IrcClient::on_notice},
{"002", &IrcClient::forward_server_message},
{"003", &IrcClient::forward_server_message},
{"005", &IrcClient::on_isupport_message},