Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
misc modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mekolat committed May 26, 2016
1 parent b219bdc commit a8144a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/irclink.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def map_login_success(data):
is_sending = 0
if is_quiet is not True:
if irc_bridge.connection.connected:
irc_bridge.connection.privmsg(irc_bridge.channel, "** TMWA link is back.".decode('utf-8', 'replace'))
irc_bridge.connection.notice(irc_bridge.channel, "** TMWA link is back.".decode('utf-8', 'replace'))
if len(irc_bridge.areachannel) > 1:
irc_bridge.connection.privmsg(irc_bridge.areachannel, "** TMWA link is back.".decode('utf-8', 'replace'))
irc_bridge.connection.notice(irc_bridge.areachannel, "** TMWA link is back.".decode('utf-8', 'replace'))
for player in whisper_players:
send_queue.put((player, "=> TMWA link is back."))
tmwa_is_ready = 1
Expand All @@ -154,9 +154,9 @@ def on_close():
if irc_bridge.connection.connected and int(time.time()) - irc_bridge.tmwa_last_died > 30 and int(time.time()) - database["last_started"] > 30:
irc_bridge.tmwa_last_died = int(time.time())
if is_quiet is not True:
irc_bridge.connection.privmsg(irc_bridge.channel, "** TMWA link died. Trying to reconnect...".decode('utf-8', 'replace'))
irc_bridge.connection.notice(irc_bridge.channel, "** TMWA link died. Trying to reconnect...".decode('utf-8', 'replace'))
if len(irc_bridge.areachannel) > 1:
irc_bridge.connection.privmsg(irc_bridge.areachannel, "** TMWA link died. Trying to reconnect...".decode('utf-8', 'replace'))
irc_bridge.connection.notice(irc_bridge.areachannel, "** TMWA link died. Trying to reconnect...".decode('utf-8', 'replace'))
time.sleep(5)
net.login(host=config.get('Server', 'host'),
port=config.getint('Server', 'port'),
Expand Down

0 comments on commit a8144a8

Please sign in to comment.