Skip to content

Commit 15a61e0

Browse files
committed
chanop.py 0.3.5: replace command /VERSION by /version (compatibility with WeeChat 3.9)
1 parent c972bb3 commit 15a61e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python/chanop.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@
196196
# History:
197197
#
198198
#
199+
# 2023-02-05
200+
# version 0.3.5: replace command /VERSION by /version
201+
# (compatibility with WeeChat 3.9)
202+
#
199203
# 2021-05-02
200204
# version 0.3.4: add compatibility with WeeChat >= 3.2 (XDG directories)
201205
#
@@ -292,7 +296,7 @@
292296

293297
SCRIPT_NAME = "chanop"
294298
SCRIPT_AUTHOR = "Elián Hanisch <[email protected]>"
295-
SCRIPT_VERSION = "0.3.4"
299+
SCRIPT_VERSION = "0.3.5"
296300
SCRIPT_LICENSE = "GPL3"
297301
SCRIPT_DESC = "Helper script for IRC Channel Operators"
298302

@@ -2539,7 +2543,7 @@ def get_isupport_value(server, feature):
25392543
if '/VERSION' in isupport[server]:
25402544
return ''
25412545
buffer = weechat.buffer_search('irc', 'server.%s' %server)
2542-
weechat_command(buffer, '/VERSION')
2546+
weechat_command(buffer, '/version')
25432547
isupport[server]['/VERSION'] = True
25442548
return v
25452549

0 commit comments

Comments
 (0)