|
From: Reed L. <r3...@us...> - 2002-07-23 02:59:20
|
CVSROOT : /cvsroot/cyclebot
Module : mod.cyclebot
Commit time: 2002-07-23 02:59:18 UTC
Modified files:
LOGINCommand.cc cyclebot.cc cyclebot.h
Log message:
cyclebot now works with PGSQL 7.2+ and changed strstream to stringstream
---------------------- diff included ----------------------
Index: mod.cyclebot/LOGINCommand.cc
diff -u mod.cyclebot/LOGINCommand.cc:1.4 mod.cyclebot/LOGINCommand.cc:1.5
--- mod.cyclebot/LOGINCommand.cc:1.4 Wed Feb 6 11:41:43 2002
+++ mod.cyclebot/LOGINCommand.cc Mon Jul 22 19:59:08 2002
@@ -2,6 +2,7 @@
#include <string>
#include <iomanip.h>
+#include <sstream>
#include "md5hash.h"
#include "StringTokenizer.h"
@@ -11,7 +12,7 @@
//#include "sqlcbUser.h"
#include "cbUser.h"
-const char LOGINCommand_cc_rcsId[] = "$Id: LOGINCommand.cc,v 1.4 2002/02/06 19:41:43 r33d Exp $" ;
+const char LOGINCommand_cc_rcsId[] = "$Id: LOGINCommand.cc,v 1.5 2002/07/23 02:59:08 r33d Exp $" ;
namespace gnuworld
{
@@ -96,7 +97,7 @@
data[ii] = digest[ii];
}
-strstream output;
+stringstream output;
output << hex;
output.fill('0');
@@ -110,11 +111,9 @@
{
bot->Notice(theClient, "Invalid Password");
- delete[] output.str() ;
return false;
}
-delete[] output.str() ;
AuthInfo *TempAuth = bot->IsAuth(theUser->getID());
Index: mod.cyclebot/cyclebot.cc
diff -u mod.cyclebot/cyclebot.cc:1.2 mod.cyclebot/cyclebot.cc:1.3
--- mod.cyclebot/cyclebot.cc:1.2 Tue Feb 5 05:50:44 2002
+++ mod.cyclebot/cyclebot.cc Mon Jul 22 19:59:08 2002
@@ -100,8 +100,7 @@
else
{
elog << "cyclebot::cyclebot> Connection established to SQL "
- << "server. Backend PID: "
- << SQLDb->getPID()
+ << "server."
<< endl ;
}
@@ -476,7 +475,7 @@
md5 hash; // MD5 hash algorithm object.
md5Digest digest; // MD5Digest algorithm object.
-strstream output;
+stringstream output;
string newPass;
newPass = salt + st.assemble(0);
Index: mod.cyclebot/cyclebot.h
diff -u mod.cyclebot/cyclebot.h:1.2 mod.cyclebot/cyclebot.h:1.3
--- mod.cyclebot/cyclebot.h:1.2 Tue Feb 5 05:50:44 2002
+++ mod.cyclebot/cyclebot.h Mon Jul 22 19:59:08 2002
@@ -2,7 +2,7 @@
*/
#ifndef __CYCLEBOT_H
-#define __CYCLEBOT_H "$Id: cyclebot.h,v 1.2 2002/02/05 13:50:44 ultike Exp $"
+#define __CYCLEBOT_H "$Id: cyclebot.h,v 1.3 2002/07/23 02:59:08 r33d Exp $"
#include <string>
#include <vector>
@@ -13,7 +13,6 @@
#include "client.h"
#include "libpq++.h"
-#include "libpq-int.h"
#include "cyclebotCommands.h"
#include "cbUser.h"
#include "cbLogin.h"
@@ -42,9 +41,6 @@
cmDatabase(const string& conninfo)
: PgDatabase(conninfo.c_str()) {}
virtual ~cmDatabase() {}
-
- inline int getPID() const
- { return pgConn->be_pid; }
};
----------------------- End of diff -----------------------
|