Add ctcp reply.
Fix badly initied chan_info
This commit is contained in:
parent
731a39f0d2
commit
d92525b7a3
@ -21,6 +21,7 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "connection.h"
|
#include "connection.h"
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#define S_CONN_DELAY (10)
|
#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 irc_cli_make_join(struct link_client *ic);
|
||||||
static void server_setup_reconnect_timer(struct link *link);
|
static void server_setup_reconnect_timer(struct link *link);
|
||||||
int irc_cli_bip(bip_t *bip, struct link_client *ic, struct line *line);
|
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 LAGOUT_TIME 480
|
||||||
#define LAGCHECK_TIME (90)
|
#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);
|
ci = hash_get(&LINK(ircs)->chan_infos, chan);
|
||||||
if (!ci) {
|
if (!ci) {
|
||||||
struct chan_info *ci;
|
struct chan_info *ci;
|
||||||
ci = malloc(sizeof(struct chan_info));
|
ci = chan_info_new();
|
||||||
ci->name = strdup(chan);
|
ci->name = strdup(chan);
|
||||||
ci->key = key ? strdup(key) : NULL;
|
ci->key = key ? strdup(key) : NULL;
|
||||||
hash_insert(&LINK(ircs)->chan_infos, chan, ci);
|
hash_insert(&LINK(ircs)->chan_infos, chan, ci);
|
||||||
|
@ -750,8 +750,6 @@ char *log_beautify(log_t *logdata, char *buf, char *dest)
|
|||||||
char *ret;
|
char *ret;
|
||||||
int out;
|
int out;
|
||||||
int done;
|
int done;
|
||||||
struct link *l;
|
|
||||||
struct chan_info *ci;
|
|
||||||
|
|
||||||
if (!buf)
|
if (!buf)
|
||||||
fatal("BUG log_beautify not called correctly!");
|
fatal("BUG log_beautify not called correctly!");
|
||||||
|
Loading…
Reference in New Issue
Block a user