Skip to content

Commit c972bb3

Browse files
committed
chancomp.py 1.2: replace command /WHOIS by /whois (compatibility with WeeChat 3.9)
1 parent 337e446 commit c972bb3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

python/chancomp.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
# This script compares channels with a different user via WHOIS and returns which
2828
# channels you share. The script comes with a command that can be used to force
2929
# comparisons (/chancomp <nick>). Depending on your settings, the script will also
30-
# function during normal /WHOIS requests and alternatively offer extra messages
30+
# function during normal /whois requests and alternatively offer extra messages
3131
# when the verbose setting is turned on.
3232
#
3333
# Script options:
3434
# compare_only_on_command (default: off, options: on, off)
3535
# Require usage of /chancomp to do comparisons, and do not perform comparisons on
36-
# normal /WHOIS requests.
36+
# normal /whois requests.
3737
#
3838
# ignored_servers (default: "", expects a comma separated string of servers to ignore.)
3939
# The script does not do comparisons on ignored servers. This setting expects
4040
# a comma separated list of servers (i.e.: "freenode,notfreenode") - ignored
4141
# servers will stop /chancomp from functioning and will not display comparisons
42-
# in your /WHOIS data.
42+
# in your /whois data.
4343
#
4444
# output_priority (default: smart, options: smart, shared, not_shared)
4545
# In order to not display too much information to consume, the output_priority
@@ -68,6 +68,8 @@
6868
# Script creation
6969
# version 1.1 - 2015-12-16
7070
# Honour irc.look.msgbuffer_fallback
71+
# version 1.2 - 2023-02-05
72+
# Replace command /WHOIS by /whois (compatibility with WeeChat 3.9)
7173
#
7274
# TODOs:
7375
# - Possibly support a verbose output of "sharing all their channels"
@@ -90,7 +92,7 @@
9092

9193
SCRIPT_NAME = "chancomp"
9294
SCRIPT_AUTHOR = "Zarthus <[email protected]>"
93-
SCRIPT_VERSION = "1.1"
95+
SCRIPT_VERSION = "1.2"
9496
SCRIPT_LICENSE = "MIT"
9597
SCRIPT_DESC = "List shared channels with user on command or WHOIS"
9698
SCRIPT_COMMAND = "chancomp"
@@ -105,7 +107,7 @@ def cmd_chancomp(data, buffer, target):
105107

106108
global _force_comparison
107109
_force_comparison = True
108-
w.command("", "/WHOIS {}".format(target))
110+
w.command("", "/whois {}".format(target))
109111

110112
return w.WEECHAT_RC_OK
111113

0 commit comments

Comments
 (0)