From 0baae420ff078fd201b8243e5b2fbf4bbb3bfbee Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 9 May 2018 21:49:40 -0700 Subject: [PATCH] fixed comparison in IRCDDBApp::findServerUser --- ircddb/IRCDDBApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircddb/IRCDDBApp.cpp b/ircddb/IRCDDBApp.cpp index a2e7f7c..340629a 100644 --- a/ircddb/IRCDDBApp.cpp +++ b/ircddb/IRCDDBApp.cpp @@ -375,7 +375,7 @@ bool IRCDDBApp::findServerUser() for (it=d->user.begin(); it!=d->user.end(); ++it) { IRCDDBAppUserObject u = it->second; - if (0==u.nick.compare(0, 2, "s-") && u.op && !d->myNick.compare(u.nick) && 0==u.nick.compare(d->bestServer)) { + if (0==u.nick.compare(0, 2, "s-") && u.op && d->myNick.compare(u.nick) && 0==u.nick.compare(d->bestServer)) { d->currentServer = u.nick; found = true; break;