aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra/m_sql.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-07-09 20:41:36 +0000
committerGravatar brain2006-07-09 20:41:36 +0000
commit6a831a13ce816907bbf4b3a0a76c449a59972983 (patch)
tree6c9820913148a41ecd3c35fe3e8b7b5a06bc0e24 /src/modules/extra/m_sql.cpp
parentWhack a space indent (diff)
FEAR THE POWER OF VIM AND THE ALMIGHTY "%s/ /\t/g"
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4249 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sql.cpp')
-rw-r--r--src/modules/extra/m_sql.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/extra/m_sql.cpp b/src/modules/extra/m_sql.cpp
index d735577f8..034c34b97 100644
--- a/src/modules/extra/m_sql.cpp
+++ b/src/modules/extra/m_sql.cpp
@@ -3,13 +3,13 @@
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2004 ChatSpike-Dev.
- * E-mail:
- * <brain@chatspike.net>
- * <Craig@chatspike.net>
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
- * the file COPYING for details.
+ * the file COPYING for details.
*
* ---------------------------------------------------
*/
@@ -98,15 +98,15 @@ class SQLConnection
{
if (!CheckConnection()) return 0;
- int r = mysql_query(&connection, query.c_str());
- if (!r)
- {
- res = mysql_store_result(&connection);
- unsigned long rows = mysql_affected_rows(&connection);
- mysql_free_result(res);
- return rows;
- }
- return 0;
+ int r = mysql_query(&connection, query.c_str());
+ if (!r)
+ {
+ res = mysql_store_result(&connection);
+ unsigned long rows = mysql_affected_rows(&connection);
+ mysql_free_result(res);
+ return rows;
+ }
+ return 0;
}
// This method fetches a row, if available from the database. You must issue a query