convert /me messages for nmdc (needs reverse tracking to avoid reposting in irc client)

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
. 2016-05-07 18:50:04 +12:00
parent 5c184766a1
commit 92cb940d45

View File

@ -358,6 +358,11 @@ func (s *Server) handleRegisteredCommand(command string, args []string) {
message := strings.Join(args[1:], " ")[1:] // strip leading colon message := strings.Join(args[1:], " ")[1:] // strip leading colon
if strings.HasPrefix(message, "\x01ACTION ") {
message = "/me " + message[8:]
message = message[:len(message)-1]
}
// IRC is case-insensitive case-preserving. We can respect that for the // IRC is case-insensitive case-preserving. We can respect that for the
// channel name, but not really for user nicks // channel name, but not really for user nicks