Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
show simpler message when someone quits IRC completely, instead of em…
…pty ()
  • Loading branch information
UnknownShadow200 committed Jan 17, 2018
1 parent d28cc17 commit 6f5cc28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions fCraft/Network/IRC.cs
Expand Up @@ -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})",
Expand Down

0 comments on commit 6f5cc28

Please sign in to comment.