Changeset 8c92848 for commands.c
- Timestamp:
- Oct 25, 2003, 11:00:13 PM (21 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r15283bb r8c92848 245 245 "such as zephyr, will also be able to use this command. For now the\n" 246 246 "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 247 254 248 255 OWLCMD_ARGS("smartzpunt", owl_command_smartzpunt, OWL_CTX_INTERACTIVE, … … 992 999 return(NULL); 993 1000 } 994 /*995 owl_function_makemsg("This function is not yet operational. Stay tuned.");996 return(NULL);997 */998 1001 owl_aim_delbuddy(argv[2]); 999 1002 owl_function_makemsg("%s deleted as AIM buddy for %s", argv[2], owl_global_get_aim_screenname(&g)); … … 1005 1008 } 1006 1009 1007 1010 return(NULL); 1011 } 1012 1013 char *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 } 1008 1034 return(NULL); 1009 1035 }
Note: See TracChangeset
for help on using the changeset viewer.