forked from gradetwo/fetion
-
Notifications
You must be signed in to change notification settings - Fork 2
/
f_smiley.c
76 lines (61 loc) · 1.41 KB
/
f_smiley.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "internal.h"
#include "accountopt.h"
#include "blist.h"
#include "conversation.h"
#include "dnsquery.h"
#include "debug.h"
#include "notify.h"
#include "privacy.h"
#include "prpl.h"
#include "plugin.h"
#include "util.h"
#include "version.h"
#include "network.h"
#include "xmlnode.h"
#include "request.h"
#include "imgstore.h"
#include "sslconn.h"
#include "sipmsg.h"
#include "dnssrv.h"
#include "ntlm.h"
#include "sipmsg.h"
#include "f_smiley.h"
void fetion_got_custom_smiley()
{
PurpleConversation *conv;
PurpleConnection *gc;
const char *who;
gc = slpcall->slplink->session->account->gc;
who = slpcall->slplink->remote_user;
if ((conv =
purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY, who,
gc->account))) {
purple_conv_custom_smiley_write(conv, slpcall->data_info, data,
size);
purple_conv_custom_smiley_close(conv, slpcall->data_info);
}
}
void fetion_got__chat()
{
conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY, who,
session->account);
if (!conv) {
conv =
purple_conversation_new(PURPLE_CONV_TYPE_IM,
session->account, who);
}
if (purple_conv_custom_smiley_add(conv, smile, "sha1", sha1, TRUE)) {
fetion_request_custom_smiley(slplink, smile,
fetion_got_custom_smiley, NULL,
obj);
}
}
void fetion_send_custom_smiley()
{
}
void fetion_check_custom_smiley()
{
}
void fetion_upload_custom_smiley()
{
}