diff --git a/Python/ki/xKIChat.py b/Python/ki/xKIChat.py index 9945c1d1..d47b103e 100644 --- a/Python/ki/xKIChat.py +++ b/Python/ki/xKIChat.py @@ -204,7 +204,7 @@ def SendMessage(self, message): message = message[len(PtGetLocalizedString("KI.Commands.ChatAllAge")) + 1:] # Is it a reply to a private message? - elif msg.startswith(PtGetLocalizedString("KI.Commands.ChatReply")): + elif 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 @@ -235,7 +235,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/Python/ki/xKIExtChatCommands.py b/Python/ki/xKIExtChatCommands.py index 5ddb2d9b..ac9cf392 100644 --- a/Python/ki/xKIExtChatCommands.py +++ b/Python/ki/xKIExtChatCommands.py @@ -131,4 +131,5 @@ Plasma.PtGetLocalizedString("KI.Commands.ChatPrivate"), Plasma.PtGetLocalizedString("KI.Commands.ChatNeighbors"), Plasma.PtGetLocalizedString("KI.Commands.ChatBuddies"), + "/r", ]