Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. stringstream theQuery;
  2. theQuery << "SELECT email FROM users WHERE email IS NOT NULL"
  3. << ends;
  4. if (!bot->SQLDb->Exec(theQuery, true))
  5. { bot->logDebugMessage("Error on HELLO.EmailQuery");
  6. #ifdef LOG_SQL
  7. //elog << "sqlQuery> " << theQuery.str().c_str() << endl;
  8. elog << "Hello.EmailQuery> SQL Error: "
  9. << bot->SQLDb->ErrorMessage()
  10. << endl ;
  11. #endif
  12. return false;
  13. } else if (bot->SQLDb->Tuples() != 0)
  14. {
  15. for (unsigned int i = 0 ; i < bot->SQLDb->Tuples(); i++)
  16. if (!match(bot->SQLDb->GetValue(i,0),st[2]))
  17. {
  18. bot->Notice(theClient,"There is already an account registered with that email address.");
  19. bot->Notice(theClient,"You can only have one account per person!");
  20. bot->Notice(theClient,"If you have lost your password and require a new one, log in to webinterface and click on the New password link.");
  21. return false;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement