1
0
forked from bip/bip

Add ctcp reply.

Fix badly initied chan_info
This commit is contained in:
Arnaud Cornet 2007-11-26 19:57:12 +01:00
parent 731a39f0d2
commit d92525b7a3
2 changed files with 3 additions and 3 deletions

View File

@ -21,6 +21,7 @@
#include "log.h"
#include "connection.h"
#include "md5.h"
#include "version.h"
#define S_CONN_DELAY (10)
@ -57,6 +58,7 @@ static void irc_copy_cli(struct link_client *src, struct link_client *dest,
static void irc_cli_make_join(struct link_client *ic);
static void server_setup_reconnect_timer(struct link *link);
int irc_cli_bip(bip_t *bip, struct link_client *ic, struct line *line);
static int irc_ctcp(struct link_server *server, struct line *line);
#define LAGOUT_TIME 480
#define LAGCHECK_TIME (90)
@ -960,7 +962,7 @@ void irc_add_channel_info(struct link_server *ircs, char *chan, char *key)
ci = hash_get(&LINK(ircs)->chan_infos, chan);
if (!ci) {
struct chan_info *ci;
ci = malloc(sizeof(struct chan_info));
ci = chan_info_new();
ci->name = strdup(chan);
ci->key = key ? strdup(key) : NULL;
hash_insert(&LINK(ircs)->chan_infos, chan, ci);

View File

@ -750,8 +750,6 @@ char *log_beautify(log_t *logdata, char *buf, char *dest)
char *ret;
int out;
int done;
struct link *l;
struct chan_info *ci;
if (!buf)
fatal("BUG log_beautify not called correctly!");