}
void TabCompleter::complete() {
- NickCompletionSettings s;
+ TabCompletionSettings s;
nickSuffix = s.completionSuffix();
if(!enabled) {
// this determines the sort order
bool TabCompleter::CompletionKey::operator<(const CompletionKey &other) const {
IrcUser *thisUser = _currentNetwork->ircUser(this->nick);
+ if(thisUser && _currentNetwork->isMe(thisUser))
+ return false;
+
IrcUser *thatUser = _currentNetwork->ircUser(other.nick);
+ if(thatUser && _currentNetwork->isMe(thatUser))
+ return true;
+
if(!thisUser || !thatUser)
return QString::localeAwareCompare(this->nick, other.nick) < 0;