#define BADACTION_KILL 2
#define BADACTION_GLINE 3
-#define WDMSG_BADWORD_ALERT "%s used badword '%s' in channel: %s"
+#define WDMSG_BADWORD_ALERT "%s used badword '%s' in channel: %s."
+#define WDMSG_REGISTER_SUCCESS "$b%s$b is now registered with %s by %s."
+#define WDMSG_UNREG_SUCCESS "$b%s$b is now unregistered by %s."
static struct {
const char *nick;
add_channel(channel->name);
reply("WDMSG_REGISTER_SUCCESS", channel->name, watchdog->nick);
- watchdog_oper_message("WDMSG_REGISTER_SUCCESS", channel->name, watchdog->nick);
+ watchdog_oper_message(WDMSG_REGISTER_SUCCESS, channel->name, watchdog->nick, user->handle_info->handle);
return 1;
}
DelChannelUser(watchdog, channel, reason, 0);
dict_remove(chanlist, channel->name);
reply("CSMSG_UNREG_SUCCESS", channel->name);
- watchdog_oper_message("CSMSG_UNREG_SUCCESS", channel->name);
+ watchdog_oper_message(WDMSG_UNREG_SUCCESS, channel->name, user->handle_info->handle);
return 1;
} else {
reply("WDMSG_NOT_REGISTERED", channel->name, watchdog->nick);
watchdog_conf.alert_channel = NULL;
}
- str = database_get_data(conf_node, "oper_chan", RECDB_QSTRING);
+ str = database_get_data(conf_node, "oper_channel", RECDB_QSTRING);
if(str)
{
watchdog_conf.oper_channel = AddChannel(str, now, "+tinms", NULL);