From 135c3dec7e7ee1d273323dfe31fc265faf89e29d Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 6 Feb 2006 12:26:03 +0000 Subject: [PATCH] Removed some debug logging in chat --- ChangeLog | 1 + mbtask/taskchat.c | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6cc4207f..05bf97cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ v0.83.11 28-Jan-2006 Made several functions multithread aware (still not Ok). Finished tasks now report using a signal call. The main scheduler doesn't run in a thread anymore. + Removed some debug logging in chat. mbcico: Assume EXTCMD is set when GZ or BZ2 is active. diff --git a/mbtask/taskchat.c b/mbtask/taskchat.c index 3de8f0df..7391e40e 100644 --- a/mbtask/taskchat.c +++ b/mbtask/taskchat.c @@ -569,9 +569,7 @@ void chat_put_r(char *data, char *buf) } else if ((strncasecmp(msg, "/join", 5) == 0) || (strncasecmp(msg, "/j ", 3) == 0)) { cmd = strtok(msg, " \0"); -// Syslog('c', "\"%s\"", cmd); cmd = strtok(NULL, "\0"); -// Syslog('c', "\"%s\"", cmd); if ((cmd == NULL) || (cmd[0] != '#') || (strcmp(cmd, "#") == 0)) { snprintf(mbuf, 200, "** Try /join #channel"); system_msg(tmpu->pid, mbuf); @@ -579,7 +577,6 @@ void chat_put_r(char *data, char *buf) snprintf(mbuf, 200, "** Cannot join while in a channel"); system_msg(tmpu->pid, mbuf); } else { -// Syslog('c', "Trying to join channel %s", cmd); join(tmpu->pid, cmd, tmpu->sysop); } chat_dump(); @@ -723,16 +720,15 @@ void chat_put_r(char *data, char *buf) */ snprintf(mbuf, 200, "** No channel joined. Try /join #channel"); system_msg(tmpu->pid, mbuf); - chat_dump(); goto ack; } else { chat_msg(tmpu->channel, tmpu->nick, msg); send_all("PRIVMSG %s <%s> %s\r\n", tmpu->channel, tmpu->nick, msg); - chat_dump(); } goto ack; } } + Syslog('c', "Pid %s was not connected to chatserver", pid); snprintf(buf, 200, "100:2,1,*** ERROR - Not connected to server;"); free(msg); @@ -788,7 +784,6 @@ void chat_get_r(char *data, char *buf) * Message is for us */ snprintf(buf, 200, "100:2,0,%s;", clencode(chat_messages[tmpu->pointer].message)); -// Syslog('c', "%s", buf); return; } }