Skip to content

Commit

Permalink
AppVeyor IRC notification: prefix channel name with # when joining
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Dec 1, 2016
1 parent 3dc2fa9 commit 49155fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/appveyor/irc-notify.py
Expand Up @@ -149,12 +149,12 @@ def appveyor_vars():
elif response[1] == '001':
time.sleep(5)
# join the channel
irc_sock.send('JOIN {}\r\n'.format(channel).encode())
irc_sock.send('JOIN #{}\r\n'.format(channel).encode())
# send messages
for msg in messages:
print('NOTICE #{} :{}'.format(channel, msg))
irc_sock.send('NOTICE #{} :{}\r\n'.format(channel, msg).encode())
time.sleep(5)
# leave the channel
irc_sock.send('PART {}\r\n'.format(channel).encode())
irc_sock.send('PART #{}\r\n'.format(channel).encode())
sys.exit()

0 comments on commit 49155fa

Please sign in to comment.