Sign in to follow this  
Followers 0
Quarter86

help with messenger server

1 post in this topic

#1 ·  Posted (edited)

i am mpdifying the cobra 0.3.6 messenger to fit my needs.

but there is still a small bug which shows every offline user as Administtrator instead of the actual offline user.

here is the code which diyplays the users status and the name.

$Split = StringSplit($Data," ")
                                If $Split[0] = 2 Then
                                    For $i = 0 to $MaxConnections-1
                                If ($Index[$i] > -1) AND $Email[$Index[$i]] = $Split[2] Then
                                ; User is online.
                                    TCPSend($Socket[$n],$ACKNOWLEDGE & " " & $DispName[$Index[$i]])
                                    ExitLoop
                                ElseIf $i = $MaxConnections-1 Then
                                ; User is offline.
                                         TCPSend($Socket[$n],$DENIAL & " " & $DispName[$Index[$i]])
                                EndIf
                                    Next
                                Else
                                    TCPSend($Socket[$n],$ERROR)
                                EndIf
Edited by Quarter86

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0