@@ -33,6 +33,7 @@ Private m_NumKicks As Long
3333Private m_JoinDate As Date
3434Private m_Users As Collection
3535Private m_Banlist As Collection
36+ Private m_HasPhantoms As Boolean ' TRUE if a phantom user has been seen in the channel.
3637
3738Public Property Get sType() As String
3839
@@ -181,6 +182,15 @@ Public Property Let KickCount(ByVal lng As Long)
181182
182183End Property
183184
185+ Public Property Get HasPhantomUsers() As Boolean
186+ HasPhantomUsers = m_HasPhantoms
187+ End Property
188+
189+ Public Property Let HasPhantomUsers(ByVal bln As Boolean )
190+ m_HasPhantoms = bln
191+ End Property
192+
193+
184194Public Property Get Users() As Collection
185195
186196 Set Users = m_Users
@@ -240,7 +250,7 @@ Public Property Get Self() As clsUserObj
240250 Set Self = New clsUserObj
241251
242252 For i = Users.Count To 1 Step -1
243- If (StrComp(Users(i).Name, CleanUsername(CurrentUsername), vbTextCompare) = 0 ) And (Users(i).IsPhantom = False ) Then
253+ If (StrComp(Users(i).Name, CleanUsername(CurrentUsername), vbTextCompare) = 0 ) Then
244254 Set Self = Users(i)
245255 Exit Property
246256 End If
@@ -279,7 +289,7 @@ Public Function GetUserIndexEx(ByVal AccountName As String, Optional ByVal Searc
279289 End If
280290 End If
281291
282- If (StrComp(Users(i).Name, AccountName, vbTextCompare) = 0 ) And (Users(i).IsPhantom = False ) Then
292+ If (StrComp(Users(i).Name, AccountName, vbTextCompare) = 0 ) Then
283293 GetUserIndexEx = i
284294 Exit Function
285295 End If
@@ -321,7 +331,7 @@ Public Function GetUserIndex(ByVal Username As String, Optional ByVal SearchLimi
321331 End If
322332 End If
323333
324- If (StrComp(m_Users(i).DisplayName, Username, vbTextCompare) = 0 ) And (Users(i).IsPhantom = False ) Then
334+ If (StrComp(m_Users(i).DisplayName, Username, vbTextCompare) = 0 ) Then
325335 GetUserIndex = i
326336 Exit Function
327337 End If
@@ -348,7 +358,7 @@ Public Function GetUserIndexByPriority(ByVal Username As String, Optional ByVal
348358 End If
349359 End If
350360
351- If (StrComp(PUser.Name, Username, vbTextCompare) = 0 ) And (PUser.IsPhantom = False ) Then
361+ If (StrComp(PUser.Name, Username, vbTextCompare) = 0 ) Then
352362 GetUserIndexByPriority = pos
353363 Exit Function
354364 End If
@@ -661,7 +671,7 @@ Public Function CheckUsers() As Integer
661671 For i = Users.Count To 1 Step -1
662672 Set CurrentUser = Users(i)
663673
664- If (CurrentUser.IsOperator = False ) And (CurrentUser.IsPhantom = False ) Then
674+ If (CurrentUser.IsOperator = False ) Then
665675 DBEntry = _
666676 Database.GetUserAccess(CurrentUser.DisplayName)
667677
@@ -683,7 +693,7 @@ Public Function CheckUsers() As Integer
683693 For i = Users.Count To 1 Step -1
684694 Set CurrentUser = Users(i)
685695
686- If (CurrentUser.IsOperator = False ) And (CurrentUser.IsPhantom = False ) Then
696+ If (CurrentUser.IsOperator = False ) Then
687697 If (CheckUser(CurrentUser.DisplayName, CurrentUser)) Then
688698 Count = (Count + 1 )
689699 End If
@@ -702,7 +712,7 @@ Public Function CheckQueue(ByVal Username As String) As Boolean
702712
703713 For i = Users.Count To 1 Step -1
704714 Set CurrentUser = Users(i)
705- If (StrComp(CurrentUser.DisplayName, Username, vbTextCompare) = 0 ) And (CurrentUser.IsPhantom = False ) Then
715+ If (StrComp(CurrentUser.DisplayName, Username, vbTextCompare) = 0 ) Then
706716 If (CurrentUser.Queue.Count) Then
707717 CheckQueue = True
708718 End If
@@ -725,6 +735,7 @@ Public Function Clone() As clsChannelObj
725735 Clone.KickCount = KickCount
726736 Clone.JoinCount = JoinCount
727737 Clone.OperatorHeir = OperatorHeir
738+ Clone.HasPhantomUsers = HasPhantomUsers
728739
729740 For i = 1 To Users.Count
730741 Clone.Users.Add Users(i).Clone()
0 commit comments