~singpolyma/biboumi

ref: bf7b05ef72bbdac97704d262ddfe418908267535 biboumi/src/irc/iid.cpp -rw-r--r-- 294 bytes
bf7b05ef — Florent Le Coz Implement the Bridge class to translate between the two protocols 10 years ago
                                                                                
bf7b05ef Florent Le Coz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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);
}