Browse Source

Added missing return value

release/0.19
Jessica James 8 years ago
parent
commit
a1446315ad
  1. 3
      Jupiter/IRC_Client.cpp

3
Jupiter/IRC_Client.cpp

@ -319,8 +319,11 @@ inline Jupiter::ReferenceString getSender(const Jupiter::ReadableString &line)
int Jupiter::IRC::Client::getAccessLevel(const Channel &in_channel, const Jupiter::ReadableString &in_nickname) const
{
char prefix = in_channel.getUserPrefix(in_nickname);
if (prefix != 0)
return static_cast<int>(m_prefixes.size() - m_prefixes.find(prefix));
return 0;
}
int Jupiter::IRC::Client::getAccessLevel(const Jupiter::ReadableString &in_channel, const Jupiter::ReadableString &in_nickname) const

Loading…
Cancel
Save