diff --git a/Scripts/Python/ki/xKIChat.py b/Scripts/Python/ki/xKIChat.py index 52d073e923..3e540f3d63 100644 --- a/Scripts/Python/ki/xKIChat.py +++ b/Scripts/Python/ki/xKIChat.py @@ -212,7 +212,7 @@ def SendMessage(self, message): selPlyrList = [] # Is it a reply to a private message? - if msg.startswith(PtGetLocalizedString("KI.Commands.ChatReply")): + if msg.startswith(PtGetLocalizedString("KI.Commands.ChatReply")) or msg.startswith("/r "): if self.toReplyToLastPrivatePlayerID is None: self.AddChatLine(None, PtGetLocalizedString("KI.Chat.NoOneToReply"), kChat.SystemMessage) return @@ -243,7 +243,10 @@ def SendMessage(self, message): self.AddChatLine(None, PtGetLocalizedString("KI.Chat.LeftTheGame", [str(self.toReplyToLastPrivatePlayerID[0])]), kChat.SystemMessage) return break - message = message[len(PtGetLocalizedString("KI.Commands.ChatReply")) + 1:] + if (msg.startswith("/r ")): + message = message[len("/r "):] + else: + message = message[len(PtGetLocalizedString("KI.Commands.ChatReply")) + 1:] # What they selected doesn't matter if they're replying. selPlyrList = [ptPlayer(self.toReplyToLastPrivatePlayerID[0], self.toReplyToLastPrivatePlayerID[1])] cFlags.private = True diff --git a/Scripts/Python/ki/xKIExtChatCommands.py b/Scripts/Python/ki/xKIExtChatCommands.py index ebc9fc400b..9efa5b8a2f 100644 --- a/Scripts/Python/ki/xKIExtChatCommands.py +++ b/Scripts/Python/ki/xKIExtChatCommands.py @@ -135,4 +135,5 @@ Plasma.PtGetLocalizedString("KI.Commands.ChatPrivate"), Plasma.PtGetLocalizedString("KI.Commands.ChatNeighbors"), Plasma.PtGetLocalizedString("KI.Commands.ChatBuddies"), + "/r", ]