• Welcome to Valhalla Legends Archive.
 

[CSB]Flags Update

Started by Forged, September 11, 2005, 01:24 AM

Previous topic - Next topic

Forged

For some reason The flags don't update properlly.  Instead of showing the correct icon when the flags update it simplly shows a blank space.


Private Sub CSB_FlagsUpdate(ByVal Username As String, ByVal Flags As Long, ByVal Message As String, ByVal Ping As Long, SimulatedEvent As Boolean)
Dim Icon As Integer
Icon = GetIconCode(Product, Flags)
lvChannel.ListItems.Remove lvChannel.FindItem(Username).Index

If Icon = ICON_OPER Then
    lvChannel.ListItems.Add 1, , Username, , Icon
Else
    With lvChannel
     .ListItems.Add , , Username, , Icon
     .ListItems(.ListItems.Count).ListSubItems.Add , , Ping
    End With
End If
End Sub



ElseIf BNFLAGS_OP And Flags = BNFLAGS_OP Then
        GetIconCode = ICON_OPER
        Exit Function



Public Const BNFLAGS_OP = &H2


It does the same with squelching.  However it works fine if I join a channel with ops already in the channel.
QuoteI wish my grass was Goth so it would cut itself

l2k-Shadow

Would it be possible for you to not use CSB and see if you hit the same problem? ... Other than that, the code seems totally fine, might be a CSB related problem of it maybe raising FlagsUpdate before the JoinUpdate, did you try looking into that?
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.