diff --git a/kdesudo/kdesudo.cpp b/kdesudo/kdesudo.cpp index 7d48de5..6936724 100644 --- a/kdesudo/kdesudo.cpp +++ b/kdesudo/kdesudo.cpp @@ -329,7 +329,7 @@ void KdeSudo::receivedOut(KProcess*, char*buffer, int buflen) static int badpass = 0; - if (strOut.tqfind("Sorry, try again")!=-1) + if (strOut.find("Sorry, try again")!=-1) { badpass++; if (badpass>2) @@ -339,37 +339,37 @@ void KdeSudo::receivedOut(KProcess*, char*buffer, int buflen) kapp->quit(); } } - if (strOut.tqfind("command not found")!=-1) + if (strOut.find("command not found")!=-1) { bError=true; KMessageBox::error(this, i18n("Command not found!")); kapp->quit(); } - if (strOut.tqfind("is not in the sudoers file")!=-1) + if (strOut.find("is not in the sudoers file")!=-1) { bError=true; KMessageBox::error(this, i18n("Your username is unknown to sudo!")); kapp->quit(); } - if (strOut.tqfind("is not allowed to execute")!=-1) + if (strOut.find("is not allowed to execute")!=-1) { bError=true; KMessageBox::error(this, i18n("Your user is not allowed to run the specified command!")); kapp->quit(); } - if (strOut.tqfind("is not allowed to run sudo on")!=-1) + if (strOut.find("is not allowed to run sudo on")!=-1) { bError=true; KMessageBox::error(this, i18n("Your user is not allowed to run sudo on this host!")); kapp->quit(); } - if (strOut.tqfind("may not run sudo on")!=-1) + if (strOut.find("may not run sudo on")!=-1) { bError=true; KMessageBox::error(this, i18n("Your user is not allowed to run sudo on this host!")); kapp->quit(); } - if ((strOut.tqfind("passprompt")!=-1) || (strOut.tqfind("PIN (CHV2)")!=-1)) + if ((strOut.find("passprompt")!=-1) || (strOut.find("PIN (CHV2)")!=-1)) { this->clearPassword(); this->show();