diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-02-25 19:05:04 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-02-25 19:05:04 +0100 |
commit | c307df85c8e7d9bcd4570269bf13c3e92c3f5954 (patch) | |
tree | 6cc8f61506b70383c1426cb617d220096929d1d1 /src/irc | |
parent | 2df0ebf2dfed1dcbf80c92bff8361e2a04581bec (diff) | |
download | biboumi-c307df85c8e7d9bcd4570269bf13c3e92c3f5954.tar.gz biboumi-c307df85c8e7d9bcd4570269bf13c3e92c3f5954.tar.bz2 biboumi-c307df85c8e7d9bcd4570269bf13c3e92c3f5954.tar.xz biboumi-c307df85c8e7d9bcd4570269bf13c3e92c3f5954.zip |
Do not handle the "%" char in a special way, in the fixed_server mode
Also fix some doc
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/iid.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp index d4dc8ce..9d39129 100644 --- a/src/irc/iid.cpp +++ b/src/irc/iid.cpp @@ -35,7 +35,7 @@ void Iid::init_with_fixed_server(const std::string& iid, const std::string& host { this->set_server(hostname); - const std::string::size_type sep = iid.find_first_of("%!"); + const std::string::size_type sep = iid.find("!"); // Without any separator, we consider that it's a channel if (sep == std::string::npos) @@ -47,9 +47,6 @@ void Iid::init_with_fixed_server(const std::string& iid, const std::string& host // but the part behind it (the hostname) is ignored { this->set_local(iid.substr(0, sep)); - if (iid[sep] == '%') - this->is_channel = true; - else this->is_user = true; } } |