Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 3214:f1ac8b51ec6b
[gaim-migrate @ 3231]
I really should make sure these things compile before committing them
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 05 May 2002 19:20:18 +0000 |
parents | 56746b0868db |
children | 5947e31a01c0 |
comparison
equal
deleted
inserted
replaced
3213:7ed9fa994055 | 3214:f1ac8b51ec6b |
---|---|
3170 if (report_idle && !(tmp & 0x400)) | 3170 if (report_idle && !(tmp & 0x400)) |
3171 aim_ssi_setpresence(sess, fr->conn, tmp | 0x400); | 3171 aim_ssi_setpresence(sess, fr->conn, tmp | 0x400); |
3172 | 3172 |
3173 /* Check for maximum number of buddies */ | 3173 /* Check for maximum number of buddies */ |
3174 for (cur=gc->groups, tmp=0; cur; cur=g_slist_next(cur)) { | 3174 for (cur=gc->groups, tmp=0; cur; cur=g_slist_next(cur)) { |
3175 tmp = tmp + g_slist_length(cur->data->members); | 3175 struct group* gr = (struct group*)cur->data; |
3176 | 3176 tmp = tmp + g_slist_length(gr->members); |
3177 } | |
3177 if (tmp > odata->rights.maxbuddies) { | 3178 if (tmp > odata->rights.maxbuddies) { |
3178 char *dialog_msg = g_strdup_printf(_("The maximum number of buddies allowed in your buddy list is %d, and you have %d." | 3179 char *dialog_msg = g_strdup_printf(_("The maximum number of buddies allowed in your buddy list is %d, and you have %d." |
3179 " Until you are below the limit, some buddies will not show up as online."), | 3180 " Until you are below the limit, some buddies will not show up as online."), |
3180 odata->rights.maxbuddies, tmp); | 3181 odata->rights.maxbuddies, tmp); |
3181 do_error_dialog(dialog_msg, _("Gaim - Warning")); | 3182 do_error_dialog(dialog_msg, _("Gaim - Warning")); |
3182 g_free(dialog_msg); | 3183 g_free(dialog_msg); |
3183 } | 3184 } |
3184 | 3185 |
3185 } /* end if (gc) */ | 3186 } /* end if (gc) */ |
3186 | 3187 |
3187 return 1; | 3188 return 1; |
3188 } | 3189 } |
3189 | 3190 |