Skip to content

Commit

Permalink
Change from send_chat to broadcast_chat
Browse files Browse the repository at this point in the history
  • Loading branch information
DryByte committed Dec 3, 2022
1 parent 9746730 commit eae90c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions piqueserver/core_commands/movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def unstick(connection, player):
Unstick yourself or another player and inform everyone on the server of it
/unstick [player]
"""
connection.protocol.send_chat("%s unstuck %s" %
connection.protocol.broadcast_chat("%s unstuck %s" %
(connection.name, player.name), irc=True)
player.set_location_safe(player.get_location())

Expand Down Expand Up @@ -98,7 +98,7 @@ def do_move(connection, args, silent=False):
if silent:
connection.protocol.irc_say('* ' + message)
else:
connection.protocol.send_chat(message, irc=True)
connection.protocol.broadcast_chat(message, irc=True)


@command(admin_only=True)
Expand Down Expand Up @@ -144,7 +144,7 @@ def teleport(connection, player1, player2=None, silent=False):
if silent:
connection.protocol.irc_say('* ' + message)
else:
connection.protocol.send_chat(message, irc=True)
connection.protocol.broadcast_chat(message, irc=True)


@command('tpsilent', 'tps', admin_only=True)
Expand Down

0 comments on commit eae90c2

Please sign in to comment.