} else {
char *channels = g_strdup(l->args[1]);
char *nicks = g_strdup(l->args[1]);
- char *p,*nx;
+ char *p, *nx;
gboolean cont = TRUE;
char *_nick;
else
target_printf(n, l->args[1], "%02d:%02d -!- %s has removed the topic\n", t->tm_hour, t->tm_min, nick);
} else if (!g_strcasecmp(l->args[0], "NICK") &&
- dir == FROM_SERVER && l->args[1]) {
+ dir == FROM_SERVER && l->args[1] != NULL) {
struct network_nick *nn = find_network_nick(n->state, nick);
GList *gl;
} else {
logbasedir = g_key_file_get_string(kf, "log-irssi", "logfile", NULL);
}
-
log_ctx = log_support_init();
gboolean linestack_store = TRUE;
if (atoi(l->args[0])) {
linestack_store &= (!redirect_response(n, l));
- } else if (!g_strcasecmp(l->args[0], "PRIVMSG") && l->argc > 2 &&
- l->args[2][0] == '\001' &&
- g_strncasecmp(l->args[2], "\001ACTION", 7) != 0) {
- ctcp_process_network_request(n, l);
- } else if (!g_strcasecmp(l->args[0], "NOTICE") && l->argc > 2 &&
- l->args[2][0] == '\001') {
- ctcp_process_network_reply(n, l);
- } else if (run_server_filter(n, l, FROM_SERVER)) {
- clients_send(n->clients, l, NULL);
+ } else {
+ if (n->clients == NULL) {
+ if (!g_strcasecmp(l->args[0], "PRIVMSG") && l->argc > 2 &&
+ l->args[2][0] == '\001' &&
+ g_strncasecmp(l->args[2], "\001ACTION", 7) != 0) {
+ ctcp_process_network_request(n, l);
+ } else if (!g_strcasecmp(l->args[0], "NOTICE") && l->argc > 2 &&
+ l->args[2][0] == '\001') {
+ ctcp_process_network_reply(n, l);
+ }
+ } else if (run_server_filter(n, l, FROM_SERVER)) {
+ clients_send(n->clients, l, NULL);
+ }
}
if (linestack_store)