From d7353040f603a76ffb1331218958e39fbcc6faa7 Mon Sep 17 00:00:00 2001 From: "." <.@.> Date: Sat, 7 May 2016 17:51:07 +1200 Subject: [PATCH] use nbsp instead of whitespace name for system messages --HG-- branch : nmdc-ircfrontend --- server.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index ee1a6ab..f37afad 100644 --- a/server.go +++ b/server.go @@ -144,6 +144,8 @@ func (s *Server) RunWorker() { func (s *Server) upstreamWorker() { + var BLANK_NICK = "PtokaX" // "\xC2\xA0" + // Read loop for { select { @@ -165,7 +167,7 @@ func (s *Server) upstreamWorker() { // description change - no relevance for IRC users 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: 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: // 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) } }