comparison plugins/yay/outgoing.c @ 2009:ac9dd6b00b34

[gaim-migrate @ 2019] different way of specifying offline messages. Jeremy, I'm just about to look at your patch committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 13 Jun 2001 21:28:03 +0000
parents f7114b4d1f96
children
comparison
equal deleted inserted replaced
2008:6f049002d963 2009:ac9dd6b00b34
113 113
114 if (!(buf = g_strconcat(user, ",", msg, NULL))) 114 if (!(buf = g_strconcat(user, ",", msg, NULL)))
115 return 0; 115 return 0;
116 116
117 ret = yahoo_write_cmd(session, conn, YAHOO_SERVICE_MESSAGE, 117 ret = yahoo_write_cmd(session, conn, YAHOO_SERVICE_MESSAGE,
118 active_id ? active_id : session->name, buf, 0);
119 g_free(buf);
120
121 return ret;
122 }
123
124 int yahoo_send_message_offline(struct yahoo_session *session, const char *active_id,
125 const char *user, const char *msg)
126 {
127 struct yahoo_conn *conn;
128 char *buf;
129 int ret;
130
131 if (!session || !user || !msg)
132 return 0;
133
134 if (!(conn = yahoo_getconn_type(session, YAHOO_CONN_TYPE_MAIN)))
135 return 0;
136
137 if (!(buf = g_strconcat(user, ",", msg, NULL)))
138 return 0;
139
140 ret = yahoo_write_cmd(session, conn, YAHOO_SERVICE_MESSAGE,
118 active_id ? active_id : session->name, buf, YAHOO_MESSAGE_SEND); 141 active_id ? active_id : session->name, buf, YAHOO_MESSAGE_SEND);
119 g_free(buf); 142 g_free(buf);
120 143
121 return ret; 144 return ret;
122 } 145 }