Changeset 8c92848 for commands.c


Ignore:
Timestamp:
Oct 25, 2003, 11:00:13 PM (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:
37eab7f
Parents:
db2dd3d
Message:
More AIM logout detection
Don't proclaim "interfaces changed" on first build.
Started experimenting with chatoom stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r15283bb r8c92848  
    245245              "such as zephyr, will also be able to use this command.  For now the\n"
    246246              "only available protocol is 'aim', specified as the first argument.\n"),
     247
     248#if 0
     249  OWLCMD_ARGS("join", owl_command_join, OWL_CTX_INTERACTIVE,
     250              "join a chat group",
     251              "join aim <groupname> [exchange]",
     252              "Join the AIM chatroom with 'groupname'.\n"),
     253#endif
    247254
    248255  OWLCMD_ARGS("smartzpunt", owl_command_smartzpunt, OWL_CTX_INTERACTIVE,
     
    992999      return(NULL);
    9931000    }
    994     /*
    995     owl_function_makemsg("This function is not yet operational.  Stay tuned.");
    996     return(NULL);
    997     */
    9981001    owl_aim_delbuddy(argv[2]);
    9991002    owl_function_makemsg("%s deleted as AIM buddy for %s", argv[2], owl_global_get_aim_screenname(&g));
     
    10051008  }
    10061009
    1007 
     1010  return(NULL);
     1011}
     1012
     1013char *owl_command_join(int argc, char **argv, char *buff)
     1014{
     1015  if (argc!=3 && argc!=4) {
     1016    owl_function_makemsg("usage: join <protocol> <buddyname> [exchange]");
     1017    return(NULL);
     1018  }
     1019
     1020  if (!strcasecmp(argv[1], "aim")) {
     1021    if (!owl_global_is_aimloggedin(&g)) {
     1022      owl_function_makemsg("join aim: You must be logged into aim to use this command.");
     1023      return(NULL);
     1024    }
     1025    if (argc==3) {
     1026      owl_aim_chat_join(argv[2], 4);
     1027    } else {
     1028      owl_aim_chat_join(argv[2], atoi(argv[3]));
     1029    }
     1030    /* owl_function_makemsg("%s deleted as AIM buddy for %s", argv[2], owl_global_get_aim_screenname(&g)); */
     1031  } else {
     1032    owl_function_makemsg("join: currently the only supported protocol is 'aim'");
     1033  }
    10081034  return(NULL);
    10091035}
Note: See TracChangeset for help on using the changeset viewer.