'greentext' filter
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
cac56a450a
commit
f51bd29e07
9
TODO.txt
9
TODO.txt
@ -1,17 +1,12 @@
|
||||
|
||||
PRE-RELEASE
|
||||
===========
|
||||
|
||||
- client descriptions (CTCP USERINFO)
|
||||
|
||||
|
||||
WISHLIST
|
||||
========
|
||||
|
||||
- "implying" colours
|
||||
|
||||
- send client keepalives (PING) /and/ ensure we get a reply (PONG)
|
||||
|
||||
- automatic markdown bold/italic formatting
|
||||
|
||||
- client version sync (CTCP VERSION)
|
||||
|
||||
- support changing nick (via reconnecting)
|
||||
|
@ -187,7 +187,15 @@ func reformatOutgoingMessageBody(body string) string {
|
||||
}
|
||||
|
||||
func reformatIncomingMessageBody(body string) string {
|
||||
|
||||
// "Greentext" filter
|
||||
// TODO markdown filters
|
||||
if len(body) > 0 && body[0] == '>' {
|
||||
return "\x033" + strings.Replace(body, "implying", "\x02implying\x02", -1)
|
||||
|
||||
} else {
|
||||
return body
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Server) upstreamWorker() {
|
||||
|
Loading…
Reference in New Issue
Block a user