Changeset 194

Show
Ignore:
Timestamp:
01/15/03 16:17:28 (6 years ago)
Author:
jajcus
Message:

- disable broken "get roster"/"put roster" commands

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure.ac

    r190 r194  
    6363AC_ARG_ENABLE([debug],AC_HELP_STRING([--disable-debug],[Disable debugging code])) 
    6464 
     65AC_ARG_ENABLE([remote-userlist],AC_HELP_STRING([--enable-remote-userlist],[Enable support for contact lists on server])) 
     66 
    6567AC_ARG_WITH([efence],AC_HELP_STRING([--with-efence],[Link against ElectricFence library])) 
    6668 
     
    6971fi 
    7072 
    71 if test "x$with_efence" == "xyes" ; then 
     73if test "x$enable_remote_userlist" = "xyes" ; then 
     74        AC_DEFINE(REMOTE_USERLIST,1,[Define to enable remote userlist support]) 
     75fi 
     76 
     77if test "x$with_efence" = "xyes" ; then 
    7278        AC_CHECK_LIB([efence], [malloc]) 
    7379fi 
  • trunk/src/message.c

    r183 r194  
    1 /* $Id: message.c,v 1.15 2003/01/15 08:04:56 jajcus Exp $ */ 
     1/* $Id: message.c,v 1.16 2003/01/15 15:17:28 jajcus Exp $ */ 
    22 
    33/* 
     
    4848 
    4949MsgCommand msg_commands[]={ 
     50#ifdef REMOTE_USERLIST 
    5051        {"get roster","gr",message_get_roster,1}, 
    5152        {"put roster","pr",message_put_roster,1}, 
     53#endif 
    5254        {"friends only","fo",message_friends_only,1}, 
    5355        {"invisible","iv",message_invisible,1}, 
     
    109111} 
    110112 
    111  
     113#ifdef REMOTE_USERLIST 
    112114void message_get_roster(struct stream_s *stream,const char *from, const char *to, 
    113115                                const char *args, xmlnode msg){ 
     
    320322        r->gghttp=NULL; 
    321323} 
     324#endif /* REMOTE USERLIST */ 
    322325 
    323326void message_friends_only(struct stream_s *stream,const char *from, const char *to, 
  • trunk/src/message.h

    r181 r194  
    1 /* $Id: message.h,v 1.3 2003/01/14 14:25:24 jajcus Exp $ */ 
     1/* $Id: message.h,v 1.4 2003/01/15 15:17:28 jajcus Exp $ */ 
    22 
    33/* 
     
    3333int jabber_message(struct stream_s *stream,xmlnode tag); 
    3434 
     35#ifdef REMOTE_USERLIST 
    3536struct request_s; 
    3637 
     
    3940void put_roster_error(struct request_s *r); 
    4041void put_roster_done(struct request_s *r); 
    41  
     42#endif 
    4243 
    4344#endif 
  • trunk/src/requests.c

    r183 r194  
    1 /* $Id: requests.c,v 1.15 2003/01/15 08:04:56 jajcus Exp $ */ 
     1/* $Id: requests.c,v 1.16 2003/01/15 15:17:28 jajcus Exp $ */ 
    22 
    33/* 
     
    6161                        remove_request(r); 
    6262                        return FALSE; 
     63#ifdef REMOTE_USERLIST 
    6364                case RT_USERLIST_GET: 
    6465                        t=gg_userlist_get_watch_fd(r->gghttp); 
     
    7778                        remove_request(r); 
    7879                        return FALSE; 
     80#endif /* REMOTE USERLIST */ 
    7981                default: 
    8082                        g_warning("Unknow gg_http session type: %i",r->gghttp->type); 
  • trunk/src/requests.h

    r182 r194  
    1 /* $Id: requests.h,v 1.8 2003/01/15 07:27:27 jajcus Exp $ */ 
     1/* $Id: requests.h,v 1.9 2003/01/15 15:17:28 jajcus Exp $ */ 
    22 
    33/* 
     
    3030        RT_VCARD, 
    3131        RT_CHANGE, 
     32#ifdef REMOTE_USERLIST 
    3233        RT_USERLIST_GET, 
    33         RT_USERLIST_PUT 
     34        RT_USERLIST_PUT, 
     35#endif 
    3436}RequestType; 
    3537