Skip to content

Commit 24da14d

Browse files
committed
keepnick.py 1.7: remove use of infolist variable "ssl_connected"
1 parent 370b760 commit 24da14d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python/keepnick.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
# You should have received a copy of the GNU General Public License
1919
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
#
21+
# 2023-06-14: Sébastien Helleu <[email protected]>
22+
# 1.7 : remove use of infolist variable "ssl_connected"
23+
#
2124
# 2017-10-19: nils_2 (freenode.#weechat)
2225
# 1.6 : fix parsing error, now using weechat.info_get_hashtable() (reported by Mikaela)
2326
#
@@ -101,7 +104,7 @@
101104
# -------------------------------[ Constants ]-------------------------------------
102105
SCRIPT_NAME = "keepnick"
103106
SCRIPT_AUTHOR = "nils_2 <[email protected]>"
104-
SCRIPT_VERSION = "1.6"
107+
SCRIPT_VERSION = "1.7"
105108
SCRIPT_LICENCE = "GPL3"
106109
SCRIPT_DESC = "keep your nick and recover it in case it's occupied"
107110

@@ -174,11 +177,10 @@ def check_nicks(data, remaining_calls):
174177
servername = weechat.infolist_string(infolist, 'name')
175178
ptr_buffer = weechat.infolist_pointer(infolist,'buffer')
176179
nick = weechat.infolist_string(infolist, 'nick')
177-
ssl_connected = weechat.infolist_integer(infolist,'ssl_connected')
178180
is_connected = weechat.infolist_integer(infolist,'is_connected')
179181

180182
if server_enabled(servername):
181-
if nick and ssl_connected + is_connected:
183+
if nick and is_connected:
182184
ison(servername,nick,server_nicks(servername))
183185
weechat.infolist_free(infolist)
184186
return weechat.WEECHAT_RC_OK

0 commit comments

Comments
 (0)