- user->WriteNumeric(959, "%s %s %s :Channel exemptchanops list is full", user->nick.c_str(), chan->name.c_str(), word.c_str());
+ // The entry must be in the format <restriction>:<prefix>.
+ std::string::size_type colon = entry.find(':');
+ if (colon == std::string::npos || colon == entry.length()-1)
+ return false;
+
+ restriction.assign(entry, 0, colon);
+ prefix.assign(entry, colon + 1, std::string::npos);