Skip to content
Permalink
Browse files

Remove unnecessary parsing of non-statstring messages

Every chat event (including server info, user talk, and whispers) were
being parsed as statstrings and then discarded. Only UserJoin,
UserInChannel, and FlagUpdate are parsed now.
  • Loading branch information...
Davnit committed Apr 29, 2016
1 parent fd92915 commit 9e744234167ed993c566ac8cd1e1e197d2a946d6
Showing with 12 additions and 8 deletions.
  1. +12 −8 trunk/modBNCS.bas
@@ -532,14 +532,18 @@ On Error GoTo ERROR_HANDLER:


If (LenB(sText) > 0) Then
Dim cUserStats As New clsUserStats
With cUserStats
.Statstring = sText
sProduct = .Game
sParsed = .ToString
sClanTag = .Clan
End With
Set cUserStats = Nothing
Select Case EventID
Case ID_JOIN, ID_USER, ID_USERFLAGS:
' Use the statstring parser to determine some properties.
Dim cUserStats As New clsUserStats
With cUserStats
.Statstring = sText
sProduct = .Game
sParsed = .ToString
sClanTag = .Clan
End With
Set cUserStats = Nothing
End Select
End If

If sProduct = PRODUCT_WAR3 Or sProduct = PRODUCT_W3XP Then

0 comments on commit 9e74423

Please sign in to comment.
You can’t perform that action at this time.