Mercurial > pidgin
annotate src/protocols/oscar/invite.c @ 5129:c19cc54f4df6
[gaim-migrate @ 5492]
Stuff I did (in order from most important to least):
-Made set away message and set profile count the number of bytes
rather than the number of characters. This fixes the lack of a
warning dialog when setting info that needs an encoding other than
ascii or iso8859-1. (Because "hi" in UCS-2BE is 4 bytes but "hi"
in utf8 is only 2.)
-Created an oscar_encoding_to_utf8 function to convert from a given
encoding to utf8. This is AIM/ICQ specific.
-Added a "Profile:" and "Away Message:" line to the get info response
window. Is it better this way or without it? I thought it would be
good if there was a way for users to tell which text was the away
message and which was the info, but I also think this solution could
be nicer looking.
-Added a little check for some server icon stuff because someone
reported an obscure crash.
-Shuffled some stuff around in oscar.c
-Bouldered on the little wall outside of the gym today. It's much
more difficult than climbing inside. I think my forearms are just
a bit too weak. The holds are tiny, though.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 14 Apr 2003 04:52:42 +0000 |
| parents | 2532f1192da3 |
| children |
| rev | line source |
|---|---|
| 2672 | 1 /* |
| 3952 | 2 * Family 0x0006 - This isn't really ever used by anyone anymore. |
| 2672 | 3 * |
| 4 * Once upon a time, there used to be a menu item in AIM clients that | |
| 5 * said something like "Invite a friend to use AIM..." and then it would | |
| 6 * ask for an email address and it would sent a mail to them saying | |
| 7 * how perfectly wonderful the AIM service is and why you should use it | |
| 8 * and click here if you hate the person who sent this to you and want to | |
| 9 * complain and yell at them in a small box with pretty fonts. | |
| 10 * | |
| 11 * I could've sworn libfaim had this implemented once, a long long time ago, | |
| 12 * but I can't find it. | |
| 13 * | |
| 14 * I'm mainly adding this so that I can keep advertising that we support | |
| 15 * group 6, even though we don't. | |
| 16 * | |
| 17 */ | |
| 18 | |
| 19 #define FAIM_INTERNAL | |
| 20 #include <aim.h> | |
| 21 | |
| 22 faim_internal int invite_modfirst(aim_session_t *sess, aim_module_t *mod) | |
| 23 { | |
| 24 | |
| 25 mod->family = 0x0006; | |
| 26 mod->version = 0x0001; | |
| 27 mod->toolid = 0x0110; | |
| 4071 | 28 mod->toolversion = 0x0629; |
| 2672 | 29 mod->flags = 0; |
| 30 strncpy(mod->name, "invite", sizeof(mod->name)); | |
| 31 mod->snachandler = NULL; | |
| 32 | |
| 33 return 0; | |
| 34 } |
