Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stringstream theQuery;
- theQuery << "SELECT email FROM users WHERE email IS NOT NULL"
- << ends;
- if (!bot->SQLDb->Exec(theQuery, true))
- { bot->logDebugMessage("Error on HELLO.EmailQuery");
- #ifdef LOG_SQL
- //elog << "sqlQuery> " << theQuery.str().c_str() << endl;
- elog << "Hello.EmailQuery> SQL Error: "
- << bot->SQLDb->ErrorMessage()
- << endl ;
- #endif
- return false;
- } else if (bot->SQLDb->Tuples() != 0)
- {
- for (unsigned int i = 0 ; i < bot->SQLDb->Tuples(); i++)
- if (!match(bot->SQLDb->GetValue(i,0),st[2]))
- {
- bot->Notice(theClient,"There is already an account registered with that email address.");
- bot->Notice(theClient,"You can only have one account per person!");
- 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.");
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement