File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments