Merge pull request #470 from Cyberboss/IRCNotices

Makes IRC messages reply with notices
This commit is contained in:
Jordan Brown
2018-01-11 05:31:16 -08:00
committed by GitHub
+7 -1
View File
@@ -70,9 +70,15 @@ namespace TGS.Server.ChatProviders
return "Disconnected.";
lock (IRCLock)
{
SendType st;
if (channel.Contains(PrivateMessageMarker))
{
channel = channel.Replace(PrivateMessageMarker, "");
irc.SendMessage(SendType.Message, channel, message);
st = SendType.Notice;
}
else
st = SendType.Message;
irc.SendMessage(st, channel, message);
}
return null;
}