Package: irssi-plugin-xmpp / 0.54-3

ailin-nemui-0001-Add-MSGLEVEL_MODES-to-presence-change-messages.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 3f92039b9076aa300c18f2bd7be9cf94394aa5d9 Mon Sep 17 00:00:00 2001
From: Peder Stray <peder.stray@gmail.com>
Date: Thu, 22 Sep 2016 16:07:55 +0200
Subject: [PATCH] Add MSGLEVEL_MODES to presence change messages

---
 src/fe-common/fe-xmpp-queries.c | 4 ++--
 src/fe-common/fe-xmpp-status.c  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/src/fe-common/fe-xmpp-queries.c
+++ b/src/fe-common/fe-xmpp-queries.c
@@ -53,10 +53,10 @@
 	    format_get_text(MODULE_NAME, NULL, server, NULL,
 		XMPPTXT_FORMAT_JID, stripped_jid);
 	if (status != NULL)
-		printformat_module(MODULE_NAME, server, stripped_jid, MSGLEVEL_CRAP,
+		printformat_module(MODULE_NAME, server, stripped_jid, MSGLEVEL_CRAP | MSGLEVEL_MODES,
 		    XMPPTXT_PRESENCE_CHANGE_REASON, name, msg, status);
 	else
-		printformat_module(MODULE_NAME, server, stripped_jid, MSGLEVEL_CRAP,
+		printformat_module(MODULE_NAME, server, stripped_jid, MSGLEVEL_CRAP | MSGLEVEL_MODES,
 		    XMPPTXT_PRESENCE_CHANGE, name, msg);
 }
 
--- a/src/fe-common/fe-xmpp-status.c
+++ b/src/fe-common/fe-xmpp-status.c
@@ -103,10 +103,10 @@
 	    format_get_text(MODULE_NAME, NULL, server, NULL,
 		XMPPTXT_FORMAT_JID, stripped_jid);
 	if (status != NULL)
-		printformat_module_window(MODULE_NAME, window, MSGLEVEL_CRAP,
+		printformat_module_window(MODULE_NAME, window, MSGLEVEL_CRAP | MSGLEVEL_MODES,
 		    XMPPTXT_PRESENCE_CHANGE_REASON, name, msg, status);
 	else
-		printformat_module_window(MODULE_NAME, window, MSGLEVEL_CRAP,
+		printformat_module_window(MODULE_NAME, window, MSGLEVEL_CRAP | MSGLEVEL_MODES,
 		    XMPPTXT_PRESENCE_CHANGE, name, msg);
 	g_free(name);
 }