Skip to content

Commit 3f7851f

Browse files
committed
Update Program.cs
1 parent ff4034f commit 3f7851f

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

MedalBOT/Program.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,9 @@ static async Task Main()
143143
joined = true;
144144
}
145145

146-
await HostmaskTracker.UpdateHostmask(ctx, line);
147-
148-
// Parse WHO responses (IRC 352 code)
149-
if (line.Contains(" 352 "))
150-
{
151-
ParseWhoResponse(ctx, line);
152-
}
153-
154146
// Forward ChanServ/SpamServ NOTICE messages directly to Discord
155147
// Format: :ChanServ!... NOTICE botname :message or :SpamServ!... NOTICE botname :message
148+
// MUST be checked BEFORE HostmaskTracker
156149
if (line.Contains(" NOTICE ") && (line.StartsWith(":ChanServ!") || line.StartsWith(":SpamServ!")))
157150
{
158151
string noticeContent = MessageParser.GetMessage(line);
@@ -182,6 +175,14 @@ static async Task Main()
182175
continue;
183176
}
184177

178+
await HostmaskTracker.UpdateHostmask(ctx, line);
179+
180+
// Parse WHO responses (IRC 352 code)
181+
if (line.Contains(" 352 "))
182+
{
183+
ParseWhoResponse(ctx, line);
184+
}
185+
185186
if (line.Contains(" QUIT "))
186187
{
187188
string quitter = MessageParser.GetNick(line);

0 commit comments

Comments
 (0)