Files
biboumi/src/irc/iid.cpp
T
Florent Le Coz a418b6ed5d Send and receive messages
Also correctly respond to PING with the id, escape some XML content, but not
always
2013-11-07 01:53:09 +01:00

22 lines
310 B
C++

#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()
{
}