Skip to content

Commit 4c50f50

Browse files
committed
Update Program.cs
1 parent 387d5de commit 4c50f50

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

MedalBOT/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ static async Task Main()
141141
}
142142

143143
// Forward ChanServ/SpamServ NOTICE messages directly to Discord
144-
if (line.Contains("NOTICE") && (line.Contains("ChanServ") || line.Contains("SpamServ")))
144+
// Format: :ChanServ!... NOTICE botname :message
145+
if (line.Contains(" NOTICE ") && (line.Contains("ChanServ") || line.Contains("SpamServ")))
145146
{
146147
string noticeContent = MessageParser.GetMessage(line);
147148
if (!string.IsNullOrWhiteSpace(noticeContent))

0 commit comments

Comments
 (0)