summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-06-15 15:47:05 +0200
committerlouiz’ <louiz@louiz.org>2016-06-15 15:51:13 +0200
commit849c50f9f33d5a391f623272b007810c816aca68 (patch)
treeb4ce665128e6a4b622c43a3c9dd0ef91de77698b /src/irc/irc_client.hpp
parent4b1c580bb9bc03d656e59d702c72c3e793a1bbe0 (diff)
downloadbiboumi-849c50f9f33d5a391f623272b007810c816aca68.tar.gz
biboumi-849c50f9f33d5a391f623272b007810c816aca68.tar.bz2
biboumi-849c50f9f33d5a391f623272b007810c816aca68.tar.xz
biboumi-849c50f9f33d5a391f623272b007810c816aca68.zip
Save our own host, as reported by the server
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r--src/irc/irc_client.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index f075ce6..718d8a7 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -218,6 +218,10 @@ public:
*/
void on_channel_completely_joined(const IrcMessage& message);
/**
+ * Save our own host, as reported by the server
+ */
+ void on_own_host_received(const IrcMessage& message);
+ /**
* We tried to set an invalid nickname
*/
void on_erroneous_nickname(const IrcMessage& message);
@@ -284,6 +288,12 @@ private:
*/
const std::string hostname;
/**
+ * Our own host, as reported by the IRC server.
+ * By default (and if it is not overridden by the server), it is a
+ * meaningless string, with the maximum allowed size
+ */
+ std::string own_host{63, '*'};
+ /**
* The hostname of the user. This is used in the USER and the WEBIRC
* commands, but only the one in WEBIRC will be used by the IRC server.
*/