| 493 status |= ((((b->uc) >> 1) & 0xF0) << 1); |
493 status |= ((((b->uc) >> 1) & 0xF0) << 1); |
| 494 */ |
494 */ |
| 495 |
495 |
| 496 if (!g_ascii_strcasecmp(state, "BSY")) |
496 if (!g_ascii_strcasecmp(state, "BSY")) |
| 497 status = "busy"; |
497 status = "busy"; |
| 498 else if (!g_ascii_strcasecmp(state, "IDL")) |
|
| 499 { |
|
| 500 /* XXX - Do something about idle time? */ |
|
| 501 status = "idle"; |
|
| 502 } |
|
| 503 else if (!g_ascii_strcasecmp(state, "BRB")) |
498 else if (!g_ascii_strcasecmp(state, "BRB")) |
| 504 status = "brb"; |
499 status = "brb"; |
| 505 else if (!g_ascii_strcasecmp(state, "AWY")) |
500 else if (!g_ascii_strcasecmp(state, "AWY")) |
| 506 status = "away"; |
501 status = "away"; |
| 507 else if (!g_ascii_strcasecmp(state, "PHN")) |
502 else if (!g_ascii_strcasecmp(state, "PHN")) |
| 510 status = "lunch"; |
505 status = "lunch"; |
| 511 else |
506 else |
| 512 status = "available"; |
507 status = "available"; |
| 513 |
508 |
| 514 gaim_prpl_got_user_status(account, passport, status, NULL); |
509 gaim_prpl_got_user_status(account, passport, status, NULL); |
| |
510 |
| |
511 if (!g_ascii_strcasecmp(state, "IDL")) |
| |
512 gaim_prpl_got_user_idle(account, passport, TRUE, -1); |
| |
513 else |
| |
514 gaim_prpl_got_user_idle(account, passport, FALSE, 0); |
| 515 } |
515 } |
| 516 |
516 |
| 517 static void |
517 static void |
| 518 ipg_cmd_post(MsnCmdProc *cmdproc, MsnCommand *cmd, char *payload, size_t len) |
518 ipg_cmd_post(MsnCmdProc *cmdproc, MsnCommand *cmd, char *payload, size_t len) |
| 519 { |
519 { |
| 571 } |
571 } |
| 572 } |
572 } |
| 573 |
573 |
| 574 if (!g_ascii_strcasecmp(state, "BSY")) |
574 if (!g_ascii_strcasecmp(state, "BSY")) |
| 575 status = "busy"; |
575 status = "busy"; |
| 576 else if (!g_ascii_strcasecmp(state, "IDL")) |
|
| 577 { |
|
| 578 /* XXX - Do something about idle time? */ |
|
| 579 status = "idle"; |
|
| 580 } |
|
| 581 else if (!g_ascii_strcasecmp(state, "BRB")) |
576 else if (!g_ascii_strcasecmp(state, "BRB")) |
| 582 status = "brb"; |
577 status = "brb"; |
| 583 else if (!g_ascii_strcasecmp(state, "AWY")) |
578 else if (!g_ascii_strcasecmp(state, "AWY")) |
| 584 status = "away"; |
579 status = "away"; |
| 585 else if (!g_ascii_strcasecmp(state, "PHN")) |
580 else if (!g_ascii_strcasecmp(state, "PHN")) |
| 588 status = "lunch"; |
583 status = "lunch"; |
| 589 else |
584 else |
| 590 status = "available"; |
585 status = "available"; |
| 591 |
586 |
| 592 gaim_prpl_got_user_status(account, passport, status, NULL); |
587 gaim_prpl_got_user_status(account, passport, status, NULL); |
| |
588 |
| |
589 if (!g_ascii_strcasecmp(state, "IDL")) |
| |
590 gaim_prpl_got_user_idle(account, passport, TRUE, -1); |
| |
591 else |
| |
592 gaim_prpl_got_user_idle(account, passport, FALSE, 0); |
| 593 } |
593 } |
| 594 |
594 |
| 595 static void |
595 static void |
| 596 chg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
596 chg_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
| 597 { |
597 { |