Changeset 1077753b


Ignore:
Timestamp:
Oct 21, 2003, 6:27:29 AM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, 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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r269ed34 r1077753b  
    55        Fixed bug in reporting when no one is subbed to a class
    66        Added an extral newline in logging incoming zephyrs
     7        An admin message is displayed when you are logged out of AIM
    78       
    892.0.9
  • 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 */
  • owl.c

    re8b95f8 r1077753b  
    432432
    433433      /* do we need to autoreply? */
    434       if (owl_message_is_type_zephyr(m) && owl_global_is_zaway(&g)) {
    435         owl_zephyr_zaway(m);
     434      if (owl_global_is_zaway(&g)) {
     435        if (owl_message_is_type_zephyr(m)) {
     436          owl_zephyr_zaway(m);
     437        } else if (owl_message_is_type_aim(m)) {
     438          /* can't do this, there's no mechanism not to start a loop */
     439          /* owl_aim_send_im(owl_message_get_sender(m), owl_global_get_zaway_msg(&g)); */
     440        }
    436441      }
    437442
Note: See TracChangeset for help on using the changeset viewer.