From b8f9116b19eb511c4f5e6a683725f50bf732a7dd Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 29 May 2010 20:44:31 -0400 Subject: Rewrote all of the command handling to get rid of all the nasty strtoks() everywhere, and added a bot map by uid --- src/modules/mysql/db_mysql_execute.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules/mysql/db_mysql_execute.cpp') diff --git a/src/modules/mysql/db_mysql_execute.cpp b/src/modules/mysql/db_mysql_execute.cpp index 572dd2917..2313edd37 100644 --- a/src/modules/mysql/db_mysql_execute.cpp +++ b/src/modules/mysql/db_mysql_execute.cpp @@ -129,11 +129,7 @@ class SQLTimer : public Timer continue; } - // XXX this whole strtok thing needs to die - char *cmdbuf = sstrdup(qres[i]["command"].c_str()); - char *cmd = strtok(cmdbuf, " "); - mod_run_cmd(bi, u, cmd); - delete [] cmdbuf; + mod_run_cmd(bi, u, qres[i]["command"].c_str()); if (logout) u->Logout(); -- cgit