Skip to content

Commit

Permalink
Allow sending raw IRC commands from IRC bot
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Dec 29, 2020
1 parent 68971fc commit a46a07c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MCGalaxy/Network/IRCPlugin/IRCBot.cs
Expand Up @@ -72,7 +72,12 @@ public sealed class IRCBot {
if (String.IsNullOrEmpty(channel)) return;
connection.Sender.Join(channel);
}


public void Raw(string message) {
if (!Enabled) return;
connection.Sender.Raw(message);
}


public void Connect() {
if (!Server.Config.UseIRC || Connected || Server.shuttingDown) return;
Expand Down

0 comments on commit a46a07c

Please sign in to comment.