Mercurial > pidgin
diff src/protocols/zephyr/zephyr.c @ 5136:381da05cb5ed
[gaim-migrate @ 5500]
this started out as simply adding an option to right-click on a jabber buddy
and re-request authorization. Then I ended up chasing the disgusting mess
of const vs non-const parameters all over gaim.
The end result is that you can now right-click on jabber buddies and
re-request auth like you can for ICQ. Also, a lot more things are const
that should be, I fixed a bug or two, and I cleaned up one of my least
favorite functions in gaim (linkify_text). It is now decidedly less evil.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 15 Apr 2003 04:18:00 +0000 |
parents | 494b6b6a6ffa |
children | ccb0ab32ba01 |
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c Tue Apr 15 03:45:31 2003 +0000 +++ b/src/protocols/zephyr/zephyr.c Tue Apr 15 04:18:00 2003 +0000 @@ -779,7 +779,7 @@ return 0; } -static int zephyr_send_im(struct gaim_connection *gc, char *who, char *im, int len, int flags) { +static int zephyr_send_im(struct gaim_connection *gc, const char *who, const char *im, int len, int flags) { ZNotice_t notice; char *buf; const char *sig; @@ -808,7 +808,6 @@ "From: @bold($1) <$sender>\n\n$2"; notice.z_message_len = strlen(im) + strlen(sig) + 4; notice.z_message = buf; - ZSendNotice(¬ice, ZAUTH); g_free(buf); return 1; } @@ -824,7 +823,7 @@ return buf; } -static void zephyr_zloc(struct gaim_connection *gc, char *who) +static void zephyr_zloc(struct gaim_connection *gc, const char *who) { ZAsyncLocateData_t ald; @@ -836,7 +835,7 @@ g_strdup(zephyr_normalize(who))); } -static GList *zephyr_buddy_menu(struct gaim_connection *gc, char *who) +static GList *zephyr_buddy_menu(struct gaim_connection *gc, const char *who) { GList *m = NULL; struct proto_buddy_menu *pbm;