|
18 | 18 | # You should have received a copy of the GNU General Public License
|
19 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
20 | 20 | #
|
| 21 | +# 2023-06-14: Sébastien Helleu <[email protected]> |
| 22 | +# 1.7 : remove use of infolist variable "ssl_connected" |
| 23 | +# |
21 | 24 | # 2017-10-19: nils_2 (freenode.#weechat)
|
22 | 25 | # 1.6 : fix parsing error, now using weechat.info_get_hashtable() (reported by Mikaela)
|
23 | 26 | #
|
|
101 | 104 | # -------------------------------[ Constants ]-------------------------------------
|
102 | 105 | SCRIPT_NAME = "keepnick"
|
103 | 106 | SCRIPT_AUTHOR = "nils_2 <[email protected]>"
|
104 |
| -SCRIPT_VERSION = "1.6" |
| 107 | +SCRIPT_VERSION = "1.7" |
105 | 108 | SCRIPT_LICENCE = "GPL3"
|
106 | 109 | SCRIPT_DESC = "keep your nick and recover it in case it's occupied"
|
107 | 110 |
|
@@ -174,11 +177,10 @@ def check_nicks(data, remaining_calls):
|
174 | 177 | servername = weechat.infolist_string(infolist, 'name')
|
175 | 178 | ptr_buffer = weechat.infolist_pointer(infolist,'buffer')
|
176 | 179 | nick = weechat.infolist_string(infolist, 'nick')
|
177 |
| - ssl_connected = weechat.infolist_integer(infolist,'ssl_connected') |
178 | 180 | is_connected = weechat.infolist_integer(infolist,'is_connected')
|
179 | 181 |
|
180 | 182 | if server_enabled(servername):
|
181 |
| - if nick and ssl_connected + is_connected: |
| 183 | + if nick and is_connected: |
182 | 184 | ison(servername,nick,server_nicks(servername))
|
183 | 185 | weechat.infolist_free(infolist)
|
184 | 186 | return weechat.WEECHAT_RC_OK
|
|
0 commit comments