Changeset 54a2014


Ignore:
Timestamp:
2010-03-21T00:46:18Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
aed152f
Parents:
699376f7
Message:

xt_status functions should always return an XT_ status, it's not a boolean.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/iq.c

    r699376f7 r54a2014  
    633633                /* Who cares about the unknown... */
    634634                imcb_log( ic, "Couldn't find buddy: %s", bare_jid);
    635                 return 0;
     635                return XT_HANDLED;
    636636        }
    637637       
     
    646646                imcb_log( ic, "WARNING: Couldn't generate feature query" );
    647647                xt_free_node( node );
    648                 return 0;
     648                return XT_HANDLED;
    649649        }
    650650
    651651        jabber_cache_add( ic, query, jabber_iq_parse_features );
    652652
    653         return jabber_write_packet( ic, query );
     653        return jabber_write_packet( ic, query ) ? XT_HANDLED : XT_ABORT;
    654654}
    655655
     
    672672                /* Who cares about the unknown... */
    673673                imcb_log( ic, "Couldn't find buddy: %s", from );
    674                 return 0;
     674                return XT_HANDLED;
    675675        }
    676676       
     
    706706        jabber_cache_add( ic, query, jabber_iq_parse_server_features );
    707707
    708         return jabber_write_packet( ic, query );
     708        return jabber_write_packet( ic, query ) ? XT_HANDLED : XT_ABORT;
    709709}
    710710
Note: See TracChangeset for help on using the changeset viewer.