Use the new IRCContext.send API instead of break_long_message
This commit is contained in:
parent
4a02943a6e
commit
1b695b4849
@ -175,8 +175,7 @@ def connect_callback():
|
|||||||
|
|
||||||
players = db.get_pre_restart_state()
|
players = db.get_pre_restart_state()
|
||||||
if players:
|
if players:
|
||||||
msg = "PING! " + break_long_message(players).replace("\n", "\nPING! ")
|
channels.Main.send(*players, first="PING! ")
|
||||||
channels.Main.send(msg)
|
|
||||||
channels.Main.send(messages["game_restart_cancel"])
|
channels.Main.send(messages["game_restart_cancel"])
|
||||||
|
|
||||||
events.remove_listener("who_end", who_end)
|
events.remove_listener("who_end", who_end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user