Mercurial > pidgin
diff src/server.c @ 1937:6a9109c79034
[gaim-migrate @ 1947]
Laddy Daaaaaaaaa.
Thanks faceprint :)
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Fri, 01 Jun 2001 21:27:59 +0000 |
| parents | 5bed3bc833b5 |
| children | c9db54d8d8dc |
line wrap: on
line diff
--- a/src/server.c Fri Jun 01 18:39:51 2001 +0000 +++ b/src/server.c Fri Jun 01 21:27:59 2001 +0000 @@ -163,11 +163,30 @@ void serv_set_away(struct gaim_connection *gc, char *state, char *message) { - if (gc && gc->prpl && gc->prpl->set_away) { - (*gc->prpl->set_away)(gc, state, message); - plugin_event(event_away, gc, state, message, 0); + if (gc && gc->prpl && gc->prpl->set_away) + { + char *buf=NULL; + if(message) + { + buf = g_malloc(strlen(message)+1); + if(gc->prpl->options & OPT_PROTO_HTML) + { + strncpy(buf, message, strlen(message)+1); + } + else + { + strncpy_nohtml(buf, message, strlen(message)+1); + } } - system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON); + + (*gc->prpl->set_away)(gc, state, buf); + plugin_event(event_away, gc, state, buf, 0); + + if(buf) + g_free(buf); +} + +system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON); } void serv_set_away_all(char *message)
