diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-06-14 01:43:03 +0300 |
---|---|---|
committer | Felipe Contreras <felipe.contreras@gmail.com> | 2010-06-14 03:57:54 +0300 |
commit | e67966bd54b650f88e26b795fd5e0d513bd50d95 (patch) | |
tree | ed540f7aba6588664f3cacf3b9e42966f49a9e2e | |
parent | e7fec91e6abbd4fb29aa6aa42b8bc67ec361ad0a (diff) |
ns: send CVR command
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
-rw-r--r-- | pn_ns.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -31,9 +31,24 @@ pn_ns_free(struct pn_ns *ns) } static void +ver_cb(void *obj, + struct pn_cmd *cmd) +{ + struct pn_session *session; + char *username; + + g_object_get(obj, "session", &session, NULL); + g_object_get(session, "username", &username, NULL); + pn_cmd_node_send(PN_CMD_NODE(obj), NULL, + "CVR", "0x0409 winnt 5.1 i386 MSNMSGR 6.0.0602 MSMSGS %s", + username); + g_free(username); +} + +static void open_cb(struct pn_ns *self) { - pn_cmd_node_send(PN_CMD_NODE(self), NULL, "VER", "MSNP12"); + pn_cmd_node_send(PN_CMD_NODE(self), ver_cb, "VER", "MSNP12"); } /* GObject stuff */ |