summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-24 16:23:46 -0300
committershennetsind <ind@henn.et>2013-06-24 16:23:46 -0300
commit045c1a44df08c1472f5a95742628a2765c1be9d1 (patch)
treea36a593992dbe57198aa893e97f346949484acd5 /src/plugins
parentae69e16adc2030017cd8b409737e522162589790 (diff)
downloadhercules-045c1a44df08c1472f5a95742628a2765c1be9d1.tar.gz
hercules-045c1a44df08c1472f5a95742628a2765c1be9d1.tar.bz2
hercules-045c1a44df08c1472f5a95742628a2765c1be9d1.tar.xz
hercules-045c1a44df08c1472f5a95742628a2765c1be9d1.zip
Follow up fcba8a2161a392369db99ab9a516a24470c54796
Fixed "random" item package rates, special thanks to Beret. Also, added the missing (+130) item package calls (special thanks to Streusel!) Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/db2sql.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c
index a6e1c20e6..c4d4adff1 100644
--- a/src/plugins/db2sql.c
+++ b/src/plugins/db2sql.c
@@ -17,7 +17,7 @@
HPExport struct hplugin_info pinfo = {
"DB2SQL", // Plugin name
SERVER_TYPE_MAP,// Which server types this plugin works with?
- "0.2", // Plugin version
+ "0.3", // Plugin version
HPM_VERSION, // HPM Version (don't change, macro is automatically updated)
};
@@ -98,6 +98,11 @@ int db2sql(char** str, const char* source, int line, int scriptopt) {
CPCMD(db2sql) {
+ if( iMap->db_use_sqldbs ) {
+ ShowInfo("db2sql: this should not be used with 'db_use_sqldbs' enabled, skipping...\n");
+ return;
+ }
+
stmt = SQL->StmtMalloc(mysql_handle);
if( stmt == NULL ) {
SqlStmt_ShowDebug(stmt);