You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trunk/modEvents.bas
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1102,14 +1102,17 @@ Public Sub Event_UserInChannel(ByVal Username As String, ByVal Flags As Long, By
1102
1102
UserObj.Queue.Add UserEvent
1103
1103
Else
1104
1104
' This is likely a phantom user situation. Remove the old user and replace with this new one.
1105
-
CallEvent_UserLeaves(Username, Flags, True)
1106
-
Set UserObj = New clsUserObj
1107
-
UserObj.UserlistWeight = g_Channel.JoinCount
1108
-
1109
1105
IfNot g_Channel.HasPhantomUsers Then
1110
-
CallfrmChat.AddChat(g_Color.ErrorMessageText, "Warning! One or more phantom users have been detected in this channel. The server may be experiencing technical difficulties.")
1106
+
CallfrmChat.AddChat(g_Color.ErrorMessageText, StringFormat("Warning! Received a presence event for user '{0}', who was already in the channel. Diagnostic info:", UserObj.Name))
@@ -1306,12 +1309,17 @@ Public Sub Event_UserJoins(ByVal Username As String, ByVal Flags As Long, ByVal
1306
1309
Else
1307
1310
' If this user is already in the channel, that instance is probably a phantom. Remove them silently.
1308
1311
If (UserIndex > 0) Then
1309
-
CallEvent_UserLeaves(Username, Flags, True)
1312
+
Set UserObj = g_Channel.Users(UserIndex)
1310
1313
1311
1314
IfNot g_Channel.HasPhantomUsers Then
1312
-
CallfrmChat.AddChat(g_Color.ErrorMessageText, "Warning! One or more phantom users have been detected in this channel. The server may be experiencing technical difficulties.")
1315
+
CallfrmChat.AddChat(g_Color.ErrorMessageText, StringFormat("Warning! Received a join event for user '{0}', who was already in the channel. Diagnostic info:", UserObj.Name))
0 commit comments