- Timestamp:
- Jun 1, 2003, 1:46:49 PM (20 years ago)
- 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:
- 31e48a3
- Parents:
- 440ce01
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
aim.c
r440ce01 r0ff8fb57 26 26 }; 27 27 28 /* 28 29 static char *msgerrreasons[] = { 29 30 "Invalid error", … … 54 55 }; 55 56 static int msgerrreasonslen = 25; 57 */ 56 58 57 59 static void faimtest_debugcb(aim_session_t *sess, int level, const char *format, va_list va); … … 168 170 { 169 171 aim_send_im(owl_global_get_aimsess(&g), to, AIM_IMFLAGS_ACK, msg); 172 173 /* I don't know how to check for an error yet */ 174 return(0); 170 175 } 171 176 … … 180 185 int owl_aim_chat_sendmsg(char *chatroom, char *msg) 181 186 { 187 return(0); 182 188 } 183 189 184 190 int owl_aim_process_events() { 185 int ret;186 191 aim_session_t *aimsess; 187 192 aim_conn_t *waitingconn = NULL; … … 241 246 /* free(priv->buddyicon); */ 242 247 /* exit(0); */ 248 return(0); 243 249 } 244 250 … … 386 392 static int conninitdone_bos(aim_session_t *sess, aim_frame_t *fr, ...) 387 393 { 388 struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;389 394 char buddies[128]; /* this is the new buddy list */ 390 395 char profile[256]; /* this is the new profile */ … … 406 411 407 412 /*aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_BUDDYICON | AIM_CAPS_CHAT | AIM_CAPS_GETFILE | AIM_CAPS_SENDFILE | AIM_CAPS_IMIMAGE | AIM_CAPS_GAMES | AIM_CAPS_SAVESTOCKS | AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT); */ 408 aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT);413 aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT ); 409 414 aim_bos_reqbuddyrights(sess, fr->conn); 410 415 … … 473 478 int logout(aim_session_t *sess) 474 479 { 475 struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;476 477 480 aim_session_kill(sess); 478 481 … … 674 677 static int faimtest_parse_motd(aim_session_t *sess, aim_frame_t *fr, ...) 675 678 { 679 char *msg; 680 fu16_t id; 681 va_list ap; 682 /* static int codeslen = 5; 676 683 static char *codes[] = { 677 684 "Unknown", … … 681 688 "Top o' the world!" 682 689 }; 683 static int codeslen = 5; 684 char *msg; 685 fu16_t id; 686 va_list ap; 687 690 */ 691 688 692 return 1; 689 693 … … 1462 1466 static int faimtest_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) 1463 1467 { 1468 /* 1464 1469 static char *missedreasons[] = { 1465 1470 "Invalid (0)", … … 1469 1474 "Evil Receiver" 1470 1475 }; 1471 static int missedreasonslen = 5; 1476 static int missedreasonslen = 5; */ 1472 1477 1473 1478 va_list ap; … … 1508 1513 static int faimtest_parse_ratechange(aim_session_t *sess, aim_frame_t *fr, ...) 1509 1514 { 1515 /* 1510 1516 static char *codes[5] = { 1511 1517 "invalid", … … 1515 1521 "limit cleared" 1516 1522 }; 1523 */ 1517 1524 va_list ap; 1518 1525 fu16_t code, rateclass; … … 1587 1594 va_list ap; 1588 1595 char *address, *SNs; 1589 int i, num; 1596 int num; 1597 /* int i; */ 1590 1598 1591 1599 va_start(ap, fr); … … 1748 1756 va_list ap; 1749 1757 aim_userinfo_t *userinfo; 1750 int count, i; 1758 int count; 1759 /* int i; */ 1751 1760 1752 1761 va_start(ap, fr); … … 1765 1774 static int faimtest_chat_leave(aim_session_t *sess, aim_frame_t *fr, ...) 1766 1775 { 1767 va_list ap;1768 1776 aim_userinfo_t *userinfo; 1769 int count , i; 1777 va_list ap; 1778 int count; 1779 /* int i; */ 1780 1770 1781 1771 1782 va_start(ap, fr); … … 1789 1800 struct aim_chat_roominfo *roominfo; 1790 1801 char *roomname; 1791 int usercount , i;1802 int usercount; 1792 1803 char *roomdesc; 1793 1804 fu16_t flags, unknown_d2, unknown_d5, maxmsglen, maxvisiblemsglen; 1794 1805 fu32_t creationtime; 1795 1806 const char *croomname; 1807 /* int i; */ 1796 1808 1797 1809 croomname = aim_chat_getname(fr->conn); … … 1875 1887 int maxrooms; 1876 1888 struct aim_chat_exchangeinfo *exchanges; 1877 int exchangecount, i; 1889 int exchangecount; 1890 /* int i; */ 1878 1891 1879 1892 maxrooms = va_arg(ap, int);
Note: See TracChangeset
for help on using the changeset viewer.