summaryrefslogtreecommitdiff
path: root/src/irc/irc_user.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-09 23:17:48 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-09 23:17:48 +0100
commit7c671499350e22f8bfba2f72b9827aa5b200f7b0 (patch)
treed6ec9c42c1f605f9c0c333df0afcc4fe2a00b439 /src/irc/irc_user.cpp
parentf38b31a63ee203e53d1135a87f1b4e9faaf7dd3f (diff)
downloadbiboumi-7c671499350e22f8bfba2f72b9827aa5b200f7b0.tar.gz
biboumi-7c671499350e22f8bfba2f72b9827aa5b200f7b0.tar.bz2
biboumi-7c671499350e22f8bfba2f72b9827aa5b200f7b0.tar.xz
biboumi-7c671499350e22f8bfba2f72b9827aa5b200f7b0.zip
Implement part and join, both ways
Diffstat (limited to 'src/irc/irc_user.cpp')
-rw-r--r--src/irc/irc_user.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/irc/irc_user.cpp b/src/irc/irc_user.cpp
index fc853bc..afe8623 100644
--- a/src/irc/irc_user.cpp
+++ b/src/irc/irc_user.cpp
@@ -7,14 +7,18 @@ IrcUser::IrcUser(const std::string& name)
const std::string::size_type sep = name.find("!");
if (sep == std::string::npos)
{
- if (name[0] == '@' || name[0] == '+')
+ if (name[0] == '~' || name[0] == '&'
+ || name[0] == '@' || name[0] == '%'
+ || name[0] == '+')
this->nick = name.substr(1);
else
this->nick = name;
}
else
{
- if (name[0] == '@' || name[0] == '+')
+ if (name[0] == '~' || name[0] == '&'
+ || name[0] == '@' || name[0] == '%'
+ || name[0] == '+')
this->nick = name.substr(1, sep);
else
this->nick = name.substr(0, sep);