summaryrefslogtreecommitdiff
path: root/agni.c
diff options
context:
space:
mode:
Diffstat (limited to 'agni.c')
-rw-r--r--agni.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/agni.c b/agni.c
index c637a43..c6644f1 100644
--- a/agni.c
+++ b/agni.c
@@ -159,8 +159,6 @@ server thread
#define TH_CONN_BUF_SZ 1024
int th_start_client(void *data)
{
- //int cmd_id = 1;
- int err;
//mq_cmd *qcmd=NULL; //queue command
int run;
int mq_event;
@@ -449,10 +447,6 @@ int th_start_client(void *data)
//something is sended to cbot
if (token_cmp(itok,1,"PRIVMSG") == 1)
{
- int fret,fret2;
- //char send_back[128];
-
- //PNL();
memset(cmd_buf,0,128);
char *uname = token_new_str(itok,0);
@@ -462,8 +456,6 @@ int th_start_client(void *data)
char *sep = strchr(uname,'!');
uname[sep-uname] = 0x0;
- PNL()
- //if (token_cmp(itok,3,":join") == 1)
if (strncmp(":join",msg,5)==0)
{
//lets check if one more argument is there
@@ -496,9 +488,6 @@ int th_start_client(void *data)
} else
{
//just send to test that thos commands works mate
- //fret2=snprintf(cmd_buf,128,":%s PRIVMSG %s PONGER\r\n",cfg->user,uname);
- //printf("FORMATED [%s]",cmd_buf);
- //fret = write(conn,cmd_buf,fret2);
//create cmd table command and add to table
qcmd = tbl_qcmd_cmd_c();
@@ -645,15 +634,6 @@ int th_event_manager(void *data)
//execution and command table generation
//tble_exec *ecmd = NULL;
tbl_exec *etbl = NULL;
- tble_qcmd *qcmd = NULL;
- tbl_qcmd *qtbl = NULL;
-
- //create execution table
- etbl = tbl_exec_list_c(30);
- if (etbl == NULL)
- {
- PERM();
- }
//load predefined/precompiled command list
{
@@ -685,9 +665,6 @@ int th_event_manager(void *data)
tbl_exec_print_tbl(etbl, TBL_PF_EXEC_ALL);
- //create command table
- qtbl = tbl_qcmd_c(30);//well 30 should be ok right?
-
//config mq
printf("Start event thread\n");
mq = cfg->mq_listen;