comparison libpurple/protocols/oscar/family_buddy.c @ 15822:32c366eeeb99

sed -ie 's/gaim/purple/g'
author Sean Egan <seanegan@gmail.com>
date Mon, 19 Mar 2007 07:01:17 +0000
parents 5fe8042783c1
children 1927f4ead3ca
comparison
equal deleted inserted replaced
15821:84b0f9b23ede 15822:32c366eeeb99
1 /* 1 /*
2 * Gaim's oscar protocol plugin 2 * Purple's oscar protocol plugin
3 * This file is the legal property of its developers. 3 * This file is the legal property of its developers.
4 * Please see the AUTHORS file distributed alongside this file. 4 * Please see the AUTHORS file distributed alongside this file.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public 7 * modify it under the terms of the GNU Lesser General Public
137 137
138 if (!buddy_list || !(localcpy = strdup(buddy_list))) 138 if (!buddy_list || !(localcpy = strdup(buddy_list)))
139 return -EINVAL; 139 return -EINVAL;
140 140
141 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) { 141 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) {
142 gaim_debug_misc("oscar", "---adding: %s (%d)\n", tmpptr, strlen(tmpptr)); 142 purple_debug_misc("oscar", "---adding: %s (%d)\n", tmpptr, strlen(tmpptr));
143 len += 1 + strlen(tmpptr); 143 len += 1 + strlen(tmpptr);
144 tmpptr = strtok(NULL, "&"); 144 tmpptr = strtok(NULL, "&");
145 } 145 }
146 146
147 frame = flap_frame_new(od, 0x02, 10+len); 147 frame = flap_frame_new(od, 0x02, 10+len);
151 151
152 strncpy(localcpy, buddy_list, strlen(buddy_list) + 1); 152 strncpy(localcpy, buddy_list, strlen(buddy_list) + 1);
153 153
154 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) { 154 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) {
155 155
156 gaim_debug_misc("oscar", "---adding: %s (%d)\n", tmpptr, strlen(tmpptr)); 156 purple_debug_misc("oscar", "---adding: %s (%d)\n", tmpptr, strlen(tmpptr));
157 157
158 byte_stream_put8(&frame->data, strlen(tmpptr)); 158 byte_stream_put8(&frame->data, strlen(tmpptr));
159 byte_stream_putstr(&frame->data, tmpptr); 159 byte_stream_putstr(&frame->data, tmpptr);
160 tmpptr = strtok(NULL, "&"); 160 tmpptr = strtok(NULL, "&");
161 } 161 }