bool operator()(const UserID &u1, const UserID &u2) const { if(u1.name()==u2.name() && u1.index()==u2.index()) return true; return false; }
size_t operator()(const UserID &u) const { return std::hash<std::string>()(u.name()) ^ std::hash<unsigned int>()(u.index()); }
QString Formatting::prettyName( const UserID & uid ) { return prettyName( uid.parent().protocol(), uid.id(), uid.name(), uid.comment() ); }