1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

disable clang-format check for a few sections of code from before format strictnes got tightened

modified:   src/fe-common/irc/fe-events-numeric.c
modified:   src/fe-common/irc/module-formats.c
modified:   src/fe-common/irc/module-formats.h
This commit is contained in:
Michael Hansen 2020-05-16 01:20:22 +02:00
parent 1fef8f82a5
commit 451e3692b2
3 changed files with 6 additions and 0 deletions

View File

@ -671,6 +671,7 @@ void fe_events_numeric_init(void)
last_away_nick = NULL;
last_away_msg = NULL;
/* clang-format off */
signal_add("event 221", (SIGNAL_FUNC) event_user_mode);
signal_add("event 303", (SIGNAL_FUNC) event_ison);
signal_add("event 353", (SIGNAL_FUNC) event_names_list);
@ -757,6 +758,7 @@ void fe_events_numeric_init(void)
signal_add("event 717", (SIGNAL_FUNC) event_target_received); /* +g notified */
signal_add("event 728", (SIGNAL_FUNC) event_target_received); /* quiet (or other) list */
signal_add("event 729", (SIGNAL_FUNC) event_target_received); /* end of quiet (or other) list */
/* clang-format on */
}
void fe_events_numeric_deinit(void)

View File

@ -21,6 +21,7 @@
#include "module.h"
#include <irssi/src/fe-common/core/formats.h>
/* clang-format off */
FORMAT_REC fecommon_irc_formats[] = {
{ MODULE_NAME, "IRC", 0 },
@ -176,3 +177,4 @@ FORMAT_REC fecommon_irc_formats[] = {
{ NULL, NULL, 0 }
};
/* clang-format on */

View File

@ -1,5 +1,6 @@
#include <irssi/src/fe-common/core/formats.h>
/* clang-format off */
enum {
IRCTXT_MODULE_NAME,
@ -144,5 +145,6 @@ enum {
IRCTXT_ASK_OPER_PASS,
IRCTXT_ACCEPT_LIST
};
/* clang-format on */
extern FORMAT_REC fecommon_irc_formats[];