From f2f5fec091e751b1f90dfe02444c01bfee5856d6 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Fri, 15 May 2020 00:48:49 +0200 Subject: [PATCH 1/2] add Irssi::UI::TextDest->set_level($bits) to change the level of a "print (no)format" or "print text" in the old code --- src/perl/ui/Formats.xs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/perl/ui/Formats.xs b/src/perl/ui/Formats.xs index 8e34b7b9..9e5ce0c2 100644 --- a/src/perl/ui/Formats.xs +++ b/src/perl/ui/Formats.xs @@ -137,3 +137,11 @@ print(dest, str) char *str CODE: printtext_dest(dest, "%s", str); + +void +set_level(dest, level) + Irssi::UI::TextDest dest + int level +CODE: + dest->level = level; + From eb228527839a8131c6a56df674b08a9828de5d39 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Fri, 15 May 2020 12:14:25 +0200 Subject: [PATCH 2/2] up abi --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index c9c4e545..73de4b78 100644 --- a/src/common.h +++ b/src/common.h @@ -6,7 +6,7 @@ #define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */ #define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */ -#define IRSSI_ABI_VERSION 29 +#define IRSSI_ABI_VERSION 30 #define DEFAULT_SERVER_ADD_PORT 6667 #define DEFAULT_SERVER_ADD_TLS_PORT 6697