use nbsp instead of whitespace name for system messages

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
. 2016-05-07 17:51:07 +12:00
parent 342f86d4c4
commit d7353040f6

View File

@ -144,6 +144,8 @@ func (s *Server) RunWorker() {
func (s *Server) upstreamWorker() { func (s *Server) upstreamWorker() {
var BLANK_NICK = "PtokaX" // "\xC2\xA0"
// Read loop // Read loop
for { for {
select { select {
@ -165,7 +167,7 @@ func (s *Server) upstreamWorker() {
// description change - no relevance for IRC users // description change - no relevance for IRC users
case libnmdc.EVENT_CONNECTION_STATE_CHANGED: case libnmdc.EVENT_CONNECTION_STATE_CHANGED:
s.reply(rplMsg, "", BLESSED_CHANNEL, "* Upstream: "+hubEvent.StateChange.Format()) s.reply(rplMsg, BLANK_NICK, BLESSED_CHANNEL, "* Upstream: "+hubEvent.StateChange.Format())
case libnmdc.EVENT_HUBNAME_CHANGED: case libnmdc.EVENT_HUBNAME_CHANGED:
s.sendChannelTopic(hubEvent.Nick) s.sendChannelTopic(hubEvent.Nick)
@ -182,7 +184,7 @@ func (s *Server) upstreamWorker() {
case libnmdc.EVENT_SYSTEM_MESSAGE_FROM_CONN, libnmdc.EVENT_SYSTEM_MESSAGE_FROM_HUB: case libnmdc.EVENT_SYSTEM_MESSAGE_FROM_CONN, libnmdc.EVENT_SYSTEM_MESSAGE_FROM_HUB:
// FIXME blank names work well in hexchat, but not in yaaic // FIXME blank names work well in hexchat, but not in yaaic
s.reply(rplMsg, "", BLESSED_CHANNEL, hubEvent.Message) s.reply(rplMsg, BLANK_NICK, BLESSED_CHANNEL, hubEvent.Message)
} }
} }