static void
snoop_conf_read(void) {
dict_t node;
- char *str;
+ char *str, *modes;
node = conf_get_data("modules/snoop", RECDB_OBJECT);
if (!node)
return;
str = database_get_data(node, "channel", RECDB_QSTRING);
+ modes = database_get_data(node, "channel_modes", RECDB_QSTRING);
if (!str)
return;
- snoop_cfg.channel = AddChannel(str, now, "+sntim", NULL, NULL);
+ snoop_cfg.channel = AddChannel(str, now, (modes ? modes : "+sntim"), NULL, NULL);
if (!snoop_cfg.channel)
return;
str = database_get_data(node, "show_bursts", RECDB_QSTRING);
static void
track_conf_read(void) {
dict_t node;
- char *str;
+ char *str, *modes;
node = conf_get_data("modules/track", RECDB_OBJECT);
if (!node)
else
parse_track_conf(str);
str = database_get_data(node, "channel", RECDB_QSTRING);
+ modes = database_get_data(node, "channel_modes", RECDB_QSTRING);
if (!str)
return;
// XXX - dont do addchannel if the channel is being shared with
// another module:
- track_cfg.channel = AddChannel(str, now, "+sntOm", NULL, NULL);
+ track_cfg.channel = AddChannel(str, now, (modes ? modes : "+sntOm"), NULL, NULL);
if (!track_cfg.channel)
return;
str = database_get_data(node, "show_bursts", RECDB_QSTRING);
"snoop" {
// Where to send snoop messages?
"channel" "#MrSnoopy";
+ "channel_modes" "+sntim";
// Which bot?
"bot" "O3";
// Show new users and joins from net joins? (off by default)
"snomask" "nick,join,part,kick,new,del,auth,chanmode,umode";
// Where to send snoop messages?
"channel" "#MrPeanuts";
+ "channel_modes" "+sntOm";
// Which bot?
"bot" "O3";
// Show new users and joins from net joins? (off by default)