Skip to content
Permalink
Browse files

show simpler message when someone quits IRC completely, instead of em…

…pty ()
  • Loading branch information...
UnknownShadow200 committed Jan 17, 2018
1 parent d28cc17 commit 6f5cc28218ada1f5d85cbbee2b9124cc73daa318
Showing with 7 additions and 2 deletions.
  1. +7 −2 fCraft/Network/IRC.cs
@@ -458,10 +458,15 @@ void HandleMessage([NotNull] string message)
return;
}
if (!ResponsibleForInputParsing) return;

// Announce parts/quits of IRC people (except the bots)
if (ConfigKey.IRCBotAnnounceIRCJoins.Enabled() && !IsBotNick(msg.Nick)) {
Server.Message("&I(IRC) {0} left the IRC channel ({1})",
msg.Nick, msg.Channel);
if (String.IsNullOrEmpty(msg.Channel)) {
Server.Message("&I(IRC) {0} left IRC");
} else {
Server.Message("&I(IRC) {0} left the IRC channel ({1})", msg.Nick, msg.Channel);
}

string quitMsg = (msg.Message == null) ? "Quit" : msg.Message;
quitMsg = IRCColorsAndNonStandardCharsExceptEmotes.Replace(quitMsg, "");
Logger.Log(LogType.IrcChat, "{0} left {1} ({2})",

0 comments on commit 6f5cc28

Please sign in to comment.
You can’t perform that action at this time.