Skip to content

Commit 0f95cb0

Browse files
committed
Merge pull request #301 from ToontownInfinite/feature/silent-teleport
Kicks: Removed the requirement for a kick reason.
2 parents f2da614 + 5f90812 commit 0f95cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

otp/ai/BanManagerAI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def banDone(self, avId):
117117

118118

119119
@magicWord(category=CATEGORY_MODERATOR, types=[str])
120-
def kick(reason):
120+
def kick(reason='No reason specified'):
121121
"""
122122
Kick the target from the game server.
123123
"""
@@ -129,7 +129,7 @@ def kick(reason):
129129
target.GetPuppetConnectionChannel(target.doId),
130130
simbase.air.ourChannel, CLIENTAGENT_EJECT)
131131
datagram.addUint16(155)
132-
datagram.addString('You were kicked by a moderator for the following reason: "%s"\n\nBehave next time!' % reason)
132+
datagram.addString('You were kicked by a moderator for the following reason: %s' % reason)
133133
simbase.air.send(datagram)
134134
return "Kicked %s from the game server!" % target.getName()
135135

0 commit comments

Comments
 (0)