Removed some debug logging in chat

This commit is contained in:
Michiel Broek 2006-02-06 12:26:03 +00:00
parent 4bc6702182
commit 135c3dec7e
2 changed files with 2 additions and 6 deletions

View File

@ -8,6 +8,7 @@ v0.83.11 28-Jan-2006
Made several functions multithread aware (still not Ok). Made several functions multithread aware (still not Ok).
Finished tasks now report using a signal call. Finished tasks now report using a signal call.
The main scheduler doesn't run in a thread anymore. The main scheduler doesn't run in a thread anymore.
Removed some debug logging in chat.
mbcico: mbcico:
Assume EXTCMD is set when GZ or BZ2 is active. Assume EXTCMD is set when GZ or BZ2 is active.

View File

@ -569,9 +569,7 @@ void chat_put_r(char *data, char *buf)
} else if ((strncasecmp(msg, "/join", 5) == 0) || } else if ((strncasecmp(msg, "/join", 5) == 0) ||
(strncasecmp(msg, "/j ", 3) == 0)) { (strncasecmp(msg, "/j ", 3) == 0)) {
cmd = strtok(msg, " \0"); cmd = strtok(msg, " \0");
// Syslog('c', "\"%s\"", cmd);
cmd = strtok(NULL, "\0"); cmd = strtok(NULL, "\0");
// Syslog('c', "\"%s\"", cmd);
if ((cmd == NULL) || (cmd[0] != '#') || (strcmp(cmd, "#") == 0)) { if ((cmd == NULL) || (cmd[0] != '#') || (strcmp(cmd, "#") == 0)) {
snprintf(mbuf, 200, "** Try /join #channel"); snprintf(mbuf, 200, "** Try /join #channel");
system_msg(tmpu->pid, mbuf); 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"); snprintf(mbuf, 200, "** Cannot join while in a channel");
system_msg(tmpu->pid, mbuf); system_msg(tmpu->pid, mbuf);
} else { } else {
// Syslog('c', "Trying to join channel %s", cmd);
join(tmpu->pid, cmd, tmpu->sysop); join(tmpu->pid, cmd, tmpu->sysop);
} }
chat_dump(); chat_dump();
@ -723,16 +720,15 @@ void chat_put_r(char *data, char *buf)
*/ */
snprintf(mbuf, 200, "** No channel joined. Try /join #channel"); snprintf(mbuf, 200, "** No channel joined. Try /join #channel");
system_msg(tmpu->pid, mbuf); system_msg(tmpu->pid, mbuf);
chat_dump();
goto ack; goto ack;
} else { } else {
chat_msg(tmpu->channel, tmpu->nick, msg); chat_msg(tmpu->channel, tmpu->nick, msg);
send_all("PRIVMSG %s <%s> %s\r\n", tmpu->channel, tmpu->nick, msg); send_all("PRIVMSG %s <%s> %s\r\n", tmpu->channel, tmpu->nick, msg);
chat_dump();
} }
goto ack; goto ack;
} }
} }
Syslog('c', "Pid %s was not connected to chatserver", pid); Syslog('c', "Pid %s was not connected to chatserver", pid);
snprintf(buf, 200, "100:2,1,*** ERROR - Not connected to server;"); snprintf(buf, 200, "100:2,1,*** ERROR - Not connected to server;");
free(msg); free(msg);
@ -788,7 +784,6 @@ void chat_get_r(char *data, char *buf)
* Message is for us * Message is for us
*/ */
snprintf(buf, 200, "100:2,0,%s;", clencode(chat_messages[tmpu->pointer].message)); snprintf(buf, 200, "100:2,0,%s;", clencode(chat_messages[tmpu->pointer].message));
// Syslog('c', "%s", buf);
return; return;
} }
} }