Changeset 1077753b for aim.c


Ignore:
Timestamp:
Oct 21, 2003, 6:27:29 AM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
a836200
Parents:
269ed34
Message:
Admin message for being logged out of AIM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    rc15bbfb r1077753b  
    228228}
    229229
     230void owl_aim_logged_out()
     231{
     232  owl_function_adminmsg("", "You have been logged out of AIM");
     233  owl_aim_logout();
     234}
     235
    230236void owl_aim_login_error(char *message)
    231237{
     
    263269}
    264270
    265 #if 0
    266 void owl_aim_get_idle(char *screenname)
    267 {
    268   /*
    269   aim_getinfo(owl_global_get_aimsess(&g),
    270               aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS),
    271               screenname,
    272               AIM_GETINFO_GENERALINFO);
    273   */
    274 }
    275 #endif
     271
     272int owl_aim_set_awaymsg(char *msg)
     273{
     274  /* there is a max away message lentgh we should check against */
     275
     276  aim_bos_setprofile(owl_global_get_aimsess(&g),
     277                     owl_global_get_bosconn(&g),
     278                     NULL, NULL, 0, "us-ascii", msg,
     279                     strlen(msg), 0);
     280  return(0);
     281}
    276282
    277283void owl_aim_chat_join(char *chatroom)
     
    327333
    328334  if (selstat == -1) {
    329     owl_function_debugmsg("Error in select");
    330     /* error */
     335    owl_aim_logged_out();
    331336  } else if (selstat == 0) {
    332337    /* no events pending */
Note: See TracChangeset for help on using the changeset viewer.