Skip to content

Commit 931c1de

Browse files
committed
kbtimeout.py 0.3: fix mixed spaces and tabs for indentation
1 parent da951ad commit 931c1de

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

python/kbtimeout.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#
2121
# History:
2222
#
23+
# 2022-01-25, Sébastien Helleu <[email protected]>
24+
# version 0.3, fix mixed spaces and tabs for indentation
2325
# 2018-07-22, kinabalu (https://mysticcoders.com)
2426
# version 0.2, script cleanup and ensure py3 compatibility
2527
# 2009-05-03, kinabalu
@@ -60,22 +62,22 @@
6062

6163
SCRIPT_NAME = 'kbtimeout'
6264
SCRIPT_AUTHOR = 'kinabalu (https://mysticcoders.com)'
63-
SCRIPT_VERSION = '0.2'
65+
SCRIPT_VERSION = '0.3'
6466
SCRIPT_LICENSE = 'GPL3'
6567

6668
def handler(data, buffer, argList):
6769

6870
split_args = argList.split(" ")
6971
if len(split_args) < 2:
70-
weechat.prnt("", "Wrong number of parameters for kbtimeout")
71-
return weechat.WEECHAT_RC_ERROR;
72+
weechat.prnt("", "Wrong number of parameters for kbtimeout")
73+
return weechat.WEECHAT_RC_ERROR;
7274

7375
nick = split_args[0]
7476
timeout = split_args[1]
7577

7678
message = ""
7779
if len(split_args) > 2:
78-
message = argList.split(" ", 2)[2]
80+
message = argList.split(" ", 2)[2]
7981

8082
nick_ptr = weechat.nicklist_search_nick(buffer, "", nick)
8183
infolist = weechat.infolist_get("irc_nick", "", "{},{}".format("freenode", "##kbtimeout"))

0 commit comments

Comments
 (0)