X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/157ce145856ad1620b724a7ad32ea70b6b8ed202..1f459b76a53574d798cd38127cd274d91adecc14:/src/opserv.c diff --git a/src/opserv.c b/src/opserv.c index 66f9ef2..36cd105 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -216,6 +216,7 @@ static const struct message_entry msgtab[] = { { "OSMSG_WHOIS_CHANNELS", "Channels : %s" }, { "OSMSG_WHOIS_HIDECHANS", "Channel list omitted for your sanity." }, { "OSMSG_WHOIS_VERSION", "Version : %s" }, + { "OSMSG_WHOIS_SSLFP", "SSL f/print : %s" }, { "OSMSG_WHOIS_MARK", "Mark : %s" }, { "OSMSG_WHOIS_NO_NOTICE", "No_notices : %s" }, { "OSMSG_UNBAN_DONE", "Ban(s) removed from channel %s." }, @@ -2167,6 +2168,9 @@ static MODCMD_FUNC(cmd_whois) if(target->version_reply) { reply("OSMSG_WHOIS_VERSION", target->version_reply); } + if(target->sslfp) { + reply("OSMSG_WHOIS_SSLFP", target->sslfp); + } if(target->mark) { reply("OSMSG_WHOIS_MARK", target->mark); } @@ -2911,7 +2915,7 @@ opserv_channel_check(struct chanNode *newchan, UNUSED_ARG(void *extra)) } static void -opserv_channel_delete(struct chanNode *chan) +opserv_channel_delete(struct chanNode *chan, UNUSED_ARG(void *extra)) { timeq_del(0, opserv_part_channel, chan, TIMEQ_IGNORE_WHEN); } @@ -6785,7 +6789,7 @@ alert_check_user(const char *key, void *data, void *extra) } static void -opserv_alert_check_account(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle)) +opserv_alert_check_account(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle), UNUSED_ARG(void *extra)) { dict_foreach(opserv_account_based_alerts, alert_check_user, user); } @@ -6808,7 +6812,7 @@ opserv_alert_check_nick(struct userNode *user, UNUSED_ARG(const char *old_nick), } static void -opserv_staff_alert(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle)) +opserv_staff_alert(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle), UNUSED_ARG(void *extra)) { const char *type; @@ -7211,7 +7215,7 @@ opserv_db_init(void) { } static void -opserv_db_cleanup(void) +opserv_db_cleanup(UNUSED_ARG(void* extra)) { unsigned int nn; @@ -7397,10 +7401,10 @@ init_opserv(const char *nick) reg_nick_change_func(opserv_alert_check_nick, NULL); reg_del_user_func(opserv_user_cleanup, NULL); reg_new_channel_func(opserv_channel_check, NULL); - reg_del_channel_func(opserv_channel_delete); + reg_del_channel_func(opserv_channel_delete, NULL); reg_join_func(opserv_join_check, NULL); - reg_auth_func(opserv_staff_alert); - reg_auth_func(opserv_alert_check_account); + reg_auth_func(opserv_staff_alert, NULL); + reg_auth_func(opserv_alert_check_account, NULL); reg_notice_func(opserv, opserv_notice_handler); opserv_db_init(); @@ -7418,6 +7422,6 @@ init_opserv(const char *nick) /* start the karma timer, using the saved one if available */ routing_karma_timer(dict_find(opserv_routing_plan_options, "KARMA_TIMER", NULL)); - reg_exit_func(opserv_db_cleanup); + reg_exit_func(opserv_db_cleanup, NULL); message_register_table(msgtab); }