Mercurial > pidgin
comparison src/protocols/msn/msn.c @ 9198:ab6636c5a136
[gaim-migrate @ 9993]
Updated all the copyright headers for all the *.[ch] files -- all 63. No
fun, but I receive great satisfaction in knowing that you all have to
recompile this, again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 03:42:55 +0000 |
parents | 502707ca1836 |
children | a9151be6fe1a |
comparison
equal
deleted
inserted
replaced
9197:ec417d2f9666 | 9198:ab6636c5a136 |
---|---|
1 /** | 1 /** |
2 * @file msn.c The MSN protocol plugin | 2 * @file msn.c The MSN protocol plugin |
3 * | 3 * |
4 * gaim | 4 * gaim |
5 * | 5 * |
6 * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> | 6 * Gaim is the legal property of its developers, whose names are too numerous |
7 * to list here. Please refer to the COPYRIGHT file distributed with this | |
8 * source distribution. | |
7 * | 9 * |
8 * This program is free software; you can redistribute it and/or modify | 10 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License as published by | 11 * it under the terms of the GNU General Public License as published by |
10 * the Free Software Foundation; either version 2 of the License, or | 12 * the Free Software Foundation; either version 2 of the License, or |
11 * (at your option) any later version. | 13 * (at your option) any later version. |
275 GaimBuddy *buddy; | 277 GaimBuddy *buddy; |
276 GaimConnection *gc; | 278 GaimConnection *gc; |
277 MsnUser *user; | 279 MsnUser *user; |
278 MsnSession *session; | 280 MsnSession *session; |
279 MsnMobileData *data; | 281 MsnMobileData *data; |
280 | 282 |
281 g_return_if_fail(GAIM_BLIST_NODE_IS_BUDDY(node)); | 283 g_return_if_fail(GAIM_BLIST_NODE_IS_BUDDY(node)); |
282 | 284 |
283 buddy = (GaimBuddy *) node; | 285 buddy = (GaimBuddy *) node; |
284 gc = gaim_account_get_connection(buddy->account); | 286 gc = gaim_account_get_connection(buddy->account); |
285 | 287 |
785 /* Buddy list full */ | 787 /* Buddy list full */ |
786 /* TODO: gaim should be notifyied of this */ | 788 /* TODO: gaim should be notifyied of this */ |
787 return; | 789 return; |
788 } | 790 } |
789 #endif | 791 #endif |
790 | 792 |
791 msn_userlist_add_buddy(userlist, who, MSN_LIST_FL, | 793 msn_userlist_add_buddy(userlist, who, MSN_LIST_FL, |
792 group ? group->name : NULL); | 794 group ? group->name : NULL); |
793 } | 795 } |
794 | 796 |
795 static void | 797 static void |
796 msn_rem_buddy(GaimConnection *gc, const char *who, const char *group_name) | 798 msn_rem_buddy(GaimConnection *gc, const char *who, const char *group_name) |
797 { | 799 { |
798 MsnSession *session; | 800 MsnSession *session; |
799 MsnUserList *userlist; | 801 MsnUserList *userlist; |
800 | 802 |
801 session = gc->proto_data; | 803 session = gc->proto_data; |
802 userlist = session->userlist; | 804 userlist = session->userlist; |
803 | 805 |
804 msn_userlist_rem_buddy(userlist, who, MSN_LIST_FL, group_name); | 806 msn_userlist_rem_buddy(userlist, who, MSN_LIST_FL, group_name); |
805 } | 807 } |
815 userlist = session->userlist; | 817 userlist = session->userlist; |
816 user = msn_userlist_find_user(userlist, who); | 818 user = msn_userlist_find_user(userlist, who); |
817 | 819 |
818 if (user->list_op & MSN_LIST_BL_OP) | 820 if (user->list_op & MSN_LIST_BL_OP) |
819 msn_userlist_rem_buddy(userlist, who, MSN_LIST_BL, NULL); | 821 msn_userlist_rem_buddy(userlist, who, MSN_LIST_BL, NULL); |
820 | 822 |
821 msn_userlist_add_buddy(userlist, who, MSN_LIST_AL, NULL); | 823 msn_userlist_add_buddy(userlist, who, MSN_LIST_AL, NULL); |
822 } | 824 } |
823 | 825 |
824 static void | 826 static void |
825 msn_add_deny(GaimConnection *gc, const char *who) | 827 msn_add_deny(GaimConnection *gc, const char *who) |
826 { | 828 { |
827 MsnSession *session; | 829 MsnSession *session; |
828 MsnUserList *userlist; | 830 MsnUserList *userlist; |
829 MsnUser *user; | 831 MsnUser *user; |
830 | 832 |
831 session = gc->proto_data; | 833 session = gc->proto_data; |
832 userlist = session->userlist; | 834 userlist = session->userlist; |
833 user = msn_userlist_find_user(userlist, who); | 835 user = msn_userlist_find_user(userlist, who); |
834 | 836 |
835 if (user->list_op & MSN_LIST_AL_OP) | 837 if (user->list_op & MSN_LIST_AL_OP) |
842 msn_rem_permit(GaimConnection *gc, const char *who) | 844 msn_rem_permit(GaimConnection *gc, const char *who) |
843 { | 845 { |
844 MsnSession *session; | 846 MsnSession *session; |
845 MsnUserList *userlist; | 847 MsnUserList *userlist; |
846 MsnUser *user; | 848 MsnUser *user; |
847 | 849 |
848 session = gc->proto_data; | 850 session = gc->proto_data; |
849 userlist = session->userlist; | 851 userlist = session->userlist; |
850 | 852 |
851 user = msn_userlist_find_user(userlist, who); | 853 user = msn_userlist_find_user(userlist, who); |
852 | 854 |
853 msn_userlist_rem_buddy(userlist, who, MSN_LIST_AL, NULL); | 855 msn_userlist_rem_buddy(userlist, who, MSN_LIST_AL, NULL); |
854 | 856 |
855 if (user->list_op & MSN_LIST_RL_OP) | 857 if (user->list_op & MSN_LIST_RL_OP) |
856 msn_userlist_add_buddy(userlist, who, MSN_LIST_BL, NULL); | 858 msn_userlist_add_buddy(userlist, who, MSN_LIST_BL, NULL); |
857 } | 859 } |
860 msn_rem_deny(GaimConnection *gc, const char *who) | 862 msn_rem_deny(GaimConnection *gc, const char *who) |
861 { | 863 { |
862 MsnSession *session; | 864 MsnSession *session; |
863 MsnUserList *userlist; | 865 MsnUserList *userlist; |
864 MsnUser *user; | 866 MsnUser *user; |
865 | 867 |
866 session = gc->proto_data; | 868 session = gc->proto_data; |
867 userlist = session->userlist; | 869 userlist = session->userlist; |
868 | 870 |
869 user = msn_userlist_find_user(userlist, who); | 871 user = msn_userlist_find_user(userlist, who); |
870 | 872 |
987 msn_group_buddy(GaimConnection *gc, const char *who, | 989 msn_group_buddy(GaimConnection *gc, const char *who, |
988 const char *old_group_name, const char *new_group_name) | 990 const char *old_group_name, const char *new_group_name) |
989 { | 991 { |
990 MsnSession *session; | 992 MsnSession *session; |
991 MsnUserList *userlist; | 993 MsnUserList *userlist; |
992 | 994 |
993 session = gc->proto_data; | 995 session = gc->proto_data; |
994 userlist = session->userlist; | 996 userlist = session->userlist; |
995 | 997 |
996 msn_userlist_move_buddy(userlist, who, old_group_name, new_group_name); | 998 msn_userlist_move_buddy(userlist, who, old_group_name, new_group_name); |
997 } | 999 } |