Package: irssi-plugin-xmpp / 0.54-3

ailin-nemui-0006-Add-help-pages-for-MUC-commands.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
From 9949b95922ae183f710d22356992a824044ce3f8 Mon Sep 17 00:00:00 2001
From: Paul Fariello <pfariello@arkoon.dev>
Date: Thu, 10 Nov 2016 14:32:50 +0100
Subject: [PATCH 06/44] Add help pages for MUC commands

Add help for affiliation, role, ban and kick commands
---
 Makefile         |  2 +-
 help/affiliation | 27 +++++++++++++++++++++++++++
 help/xmppban     | 20 ++++++++++++++++++++
 help/xmppkick    | 19 +++++++++++++++++++
 help/role        | 26 ++++++++++++++++++++++++++
 5 files changed, 93 insertions(+), 1 deletion(-)
 create mode 100644 help/affiliation
 create mode 100644 help/xmppban
 create mode 100644 help/xmppkick
 create mode 100644 help/role

diff --git a/Makefile b/Makefile
index 34b9370..3fd778d 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ doc-uninstall:
 help-install:
 	@echo installing command help files to ${DESTDIR}${IRSSI_HELP}
 	@install -d ${DESTDIR}${IRSSI_HELP}
-	@cd help/ && install -m 644 presence roster xmppconnect xmppserver ${DESTDIR}${IRSSI_HELP}
+	@cd help/ && install -m 644 presence roster role affiliation xmppkick xmppban xmppconnect xmppserver ${DESTDIR}${IRSSI_HELP}
 
 help-uninstall:
 	@echo uninstalling command help files from ${DESTDIR}${IRSSI_HELP}
diff --git a/help/affiliation b/help/affiliation
new file mode 100644
index 0000000..f70652d
--- /dev/null
+++ b/help/affiliation
@@ -0,0 +1,27 @@
+
+Syntax:
+
+AFFILIATION [<channel>] <type> [<jid>] [<reason>]
+
+Parameters:
+
+    An affiliation type and optionnaly a jid, a reason and a channel.
+
+    Type must be one of:
+        - none
+        - owner
+        - admin
+        - member
+        - outcast
+
+Description:
+
+    When called without a jid, list all user having a specific affiliation, if you have the right to do it.
+    Otherwise, give jid a specific affiliation, if you have the right to do it.
+
+Examples:
+
+    /AFFILIATION outcast
+    /AFFILIATION admin john
+
+See also: ROLE, XMPPKICK, XMPPBAN
diff --git a/help/xmppban b/help/xmppban
new file mode 100644
index 0000000..4fed9ad
--- /dev/null
+++ b/help/xmppban
@@ -0,0 +1,20 @@
+
+Syntax:
+
+BAN [<channel>] <jid> [<reason>]
+
+Parameters:
+
+    A jid and optionnaly a channel and a reason.
+
+Description:
+
+    Ban a user from a MUC.
+    Equivalent to /AFFILIATION outcast <jid>.
+
+Examples:
+
+    /BAN john
+
+See also: ROLE, AFFILIATION, XMPPKICK
+
diff --git a/help/xmppkick b/help/xmppkick
new file mode 100644
index 0000000..f190e0d
--- /dev/null
+++ b/help/xmppkick
@@ -0,0 +1,19 @@
+
+Syntax:
+
+KICK [<channel>] <nick> [<reason>]
+
+Parameters:
+
+    A nick name and optionnaly a channel and a reason.
+
+Description:
+
+    Kick a user from a MUC.
+    Equivalent to /ROLE none <nick>.
+
+Examples:
+
+    /KICK john
+
+See also: ROLE, AFFILIATION, XMPPBAN
diff --git a/help/role b/help/role
new file mode 100644
index 0000000..f4c2bb9
--- /dev/null
+++ b/help/role
@@ -0,0 +1,26 @@
+
+Syntax:
+
+ROLE [<channel>] <type> [<nick>] [<reason>]
+
+Parameters:
+
+    A role type and optionnaly a nick, a reason and a channel.
+
+    Type must be one of:
+        - none
+        - moderator
+        - participant
+        - visitor
+
+Description:
+
+    When called without a nick, list all user having a specific role, if you have the right to do it.
+    Otherwise, give nick a specific role, if you have the right to do it.
+
+Examples:
+
+    /ROLE participant
+    /ROLE moderartor john
+
+See also: AFFILIATION, XMPPKICK, XMPPBAN
-- 
2.14.2