summaryrefslogtreecommitdiff
path: root/src/irc/irc_user.cpp
diff options
context:
space:
mode:
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);