Comment 2 for bug 183977

Revision history for this message
Mats (matsben) wrote : Re: [Bug 183977] Re: Whiteboard option unavailable for some users

Do you mean that the "Whiteboard" popup menu entry is grayed out.
The code looks something like this:

     if {[::Roster::IsCoccinella $jid3]} {
  lappend clicked wb
     }
...
proc ::Roster::IsCoccinella {jid3} {
    upvar ::Jabber::jstate jstate
    upvar ::Jabber::coccixmlns coccixmlns
    upvar ::Jabber::xmppxmlns xmppxmlns

    set ans 0
    if {![IsTransportEx $jid3]} {
 set node [$jstate(jlib) roster getcapsattr $jid3 node]
 # NB: We must treat both the 1.3 and 1.4 caps XEP!
 if {$node eq $coccixmlns(caps)} {
     set ans 1
 }
 # node='http://coccinella.sourceforge.net/#0.96.4'
 if {[string match $coccixmlns(caps14)* $node]} {
     set ans 1
 }
    }
    return $ans
}