1 parent d28cc17 commit 6f5cc28Copy full SHA for 6f5cc28
1 file changed
fCraft/Network/IRC.cs
@@ -458,10 +458,15 @@ void HandleIrcPartQuit(IRCMessage msg) {
458
return;
459
}
460
if (!ResponsibleForInputParsing) return;
461
+
462
// Announce parts/quits of IRC people (except the bots)
463
if (ConfigKey.IRCBotAnnounceIRCJoins.Enabled() && !IsBotNick(msg.Nick)) {
- Server.Message("&I(IRC) {0} left the IRC channel ({1})",
464
- msg.Nick, msg.Channel);
+ if (String.IsNullOrEmpty(msg.Channel)) {
465
+ Server.Message("&I(IRC) {0} left IRC");
466
+ } else {
467
+ Server.Message("&I(IRC) {0} left the IRC channel ({1})", msg.Nick, msg.Channel);
468
+ }
469
470
string quitMsg = (msg.Message == null) ? "Quit" : msg.Message;
471
quitMsg = IRCColorsAndNonStandardCharsExceptEmotes.Replace(quitMsg, "");
472
Logger.Log(LogType.IrcChat, "{0} left {1} ({2})",
0 commit comments