Mercurial > pidgin
diff src/oscar.c @ 249:810c595258c8
[gaim-migrate @ 259]
You can now get users' away messages.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 22 May 2000 01:18:32 +0000 |
| parents | cfc73b8501a7 |
| children | c5aa7bf99059 |
line wrap: on
line diff
--- a/src/oscar.c Sun May 21 11:58:18 2000 +0000 +++ b/src/oscar.c Mon May 22 01:18:32 2000 +0000 @@ -511,6 +511,7 @@ struct command_rx_struct *command, ...) { struct aim_userinfo_s *info; char *prof_enc = NULL, *prof = NULL; + u_short infotype; char buf[BUF_LONG]; va_list ap; @@ -518,8 +519,14 @@ info = va_arg(ap, struct aim_userinfo_s *); prof_enc = va_arg(ap, char *); prof = va_arg(ap, char *); + infotype = va_arg(ap, u_short); va_end(ap); + if (prof == NULL || !strlen(prof)) { + do_error_dialog("User has no away message.", "Gaim - Away Msg"); + return 1; + } + snprintf(buf, sizeof buf, "Username : <B>%s</B>\n<BR>" "Warning Level : <B>%d %%</B>\n<BR>" "Online Since : <B>%s</B><BR>"
