mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix whitespace (tabs -> spaces).
This commit is contained in:
parent
347b425c67
commit
dd62de0384
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ def send_msg(channel, msg, server='localhost', port='6667',
|
|||
start = time.time()
|
||||
while 1:
|
||||
motd += irc.recv(1024)
|
||||
# The server might send back a shorter nick than we specified (due to NICKLEN),
|
||||
# so grab that and use it from now on (assuming we find the 00[1-4] response).
|
||||
# The server might send back a shorter nick than we specified (due to NICKLEN),
|
||||
# so grab that and use it from now on (assuming we find the 00[1-4] response).
|
||||
match = re.search('^:\S+ 00[1-4] (?P<nick>\S+) :', motd, flags=re.M)
|
||||
if match:
|
||||
nick = match.group('nick')
|
||||
|
|
Loading…
Reference in a new issue