convert /me messages for nmdc (needs reverse tracking to avoid reposting in irc client)
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
5c184766a1
commit
92cb940d45
@ -358,6 +358,11 @@ func (s *Server) handleRegisteredCommand(command string, args []string) {
|
||||
|
||||
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
|
||||
// channel name, but not really for user nicks
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user