diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-01-04 01:30:03 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-01-04 01:59:36 +0100 |
commit | e840704b58a984351971e8034e74f5e9fdfaf114 (patch) | |
tree | 9b038d0003e175b640cddd8de0d7814dde8eaf51 /src/irc/irc_client.hpp | |
parent | baf03a7e20d30698a06ccf03cd93b15317de340e (diff) | |
download | biboumi-e840704b58a984351971e8034e74f5e9fdfaf114.tar.gz biboumi-e840704b58a984351971e8034e74f5e9fdfaf114.tar.bz2 biboumi-e840704b58a984351971e8034e74f5e9fdfaf114.tar.xz biboumi-e840704b58a984351971e8034e74f5e9fdfaf114.zip |
Convert received modes into roles and affiliations
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r-- | src/irc/irc_client.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp index a0258ee..96ded44 100644 --- a/src/irc/irc_client.hpp +++ b/src/irc/irc_client.hpp @@ -229,9 +229,14 @@ private: /** * See http://www.irc.org/tech_docs/draft-brocklesby-irc-isupport-03.txt section 3.14 * The example given would be transformed into - * modes_to_prefix = {{'a', '&'}, {'b', '*'}} + * modes_to_prefix = {{'&', 'a'}, {'*', 'b'}} */ std::map<char, char> prefix_to_mode; + /** + * Available user modes, sorted from most significant to least significant + * (for example 'ahov' is a common order). + */ + std::vector<char> sorted_user_modes; IrcClient(const IrcClient&) = delete; IrcClient(IrcClient&&) = delete; |