27
27
# This script compares channels with a different user via WHOIS and returns which
28
28
# channels you share. The script comes with a command that can be used to force
29
29
# 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
31
31
# when the verbose setting is turned on.
32
32
#
33
33
# Script options:
34
34
# compare_only_on_command (default: off, options: on, off)
35
35
# Require usage of /chancomp to do comparisons, and do not perform comparisons on
36
- # normal /WHOIS requests.
36
+ # normal /whois requests.
37
37
#
38
38
# ignored_servers (default: "", expects a comma separated string of servers to ignore.)
39
39
# The script does not do comparisons on ignored servers. This setting expects
40
40
# a comma separated list of servers (i.e.: "freenode,notfreenode") - ignored
41
41
# servers will stop /chancomp from functioning and will not display comparisons
42
- # in your /WHOIS data.
42
+ # in your /whois data.
43
43
#
44
44
# output_priority (default: smart, options: smart, shared, not_shared)
45
45
# In order to not display too much information to consume, the output_priority
68
68
# Script creation
69
69
# version 1.1 - 2015-12-16
70
70
# Honour irc.look.msgbuffer_fallback
71
+ # version 1.2 - 2023-02-05
72
+ # Replace command /WHOIS by /whois (compatibility with WeeChat 3.9)
71
73
#
72
74
# TODOs:
73
75
# - Possibly support a verbose output of "sharing all their channels"
90
92
91
93
SCRIPT_NAME = "chancomp"
92
94
SCRIPT_AUTHOR = "Zarthus <[email protected] >"
93
- SCRIPT_VERSION = "1.1 "
95
+ SCRIPT_VERSION = "1.2 "
94
96
SCRIPT_LICENSE = "MIT"
95
97
SCRIPT_DESC = "List shared channels with user on command or WHOIS"
96
98
SCRIPT_COMMAND = "chancomp"
@@ -105,7 +107,7 @@ def cmd_chancomp(data, buffer, target):
105
107
106
108
global _force_comparison
107
109
_force_comparison = True
108
- w .command ("" , "/WHOIS {}" .format (target ))
110
+ w .command ("" , "/whois {}" .format (target ))
109
111
110
112
return w .WEECHAT_RC_OK
111
113
0 commit comments