summaryrefslogtreecommitdiff
path: root/src/irc/iid.cpp
blob: 4694c0c16be8d5c435ec360657fe2166f78e1635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <irc/iid.hpp>

Iid::Iid(const std::string& iid)
{
  std::string::size_type sep = iid.find("%");
  if (sep != std::string::npos)
    {
      this->chan = iid.substr(0, sep);
      sep++;
    }
  else
    {
      this->chan = iid;
      return;
    }
  this->server = iid.substr(sep);
}

Iid::Iid()
{
}