plugins/statenotify.c

changeset 5587
22cb9fe4798a
parent 5267
14a104927560
child 5676
d3c2fdaf4821
equal deleted inserted replaced
5586:6be7bfb9b97d 5587:22cb9fe4798a
1 #include "gaim.h" 1 #include "gaim.h"
2 2
3 static void 3 static void
4 write_status(struct gaim_connection *gc, char *who, const char *message) 4 write_status(GaimConnection *gc, char *who, const char *message)
5 { 5 {
6 struct gaim_conversation *conv; 6 struct gaim_conversation *conv;
7 struct buddy *b; 7 struct buddy *b;
8 char buf[256]; 8 char buf[256];
9 9
19 19
20 gaim_conversation_write(conv, NULL, buf, -1, WFLAG_SYSTEM, time(NULL)); 20 gaim_conversation_write(conv, NULL, buf, -1, WFLAG_SYSTEM, time(NULL));
21 } 21 }
22 22
23 static void 23 static void
24 buddy_away_cb(struct gaim_connection *gc, char *who, void *data) 24 buddy_away_cb(GaimConnection *gc, char *who, void *data)
25 { 25 {
26 write_status(gc, who, "has gone away."); 26 write_status(gc, who, "has gone away.");
27 } 27 }
28 28
29 static void 29 static void
30 buddy_unaway_cb(struct gaim_connection *gc, char *who, void *data) 30 buddy_unaway_cb(GaimConnection *gc, char *who, void *data)
31 { 31 {
32 write_status(gc, who, "is no longer away."); 32 write_status(gc, who, "is no longer away.");
33 } 33 }
34 34
35 static void 35 static void
36 buddy_idle_cb(struct gaim_connection *gc, char *who, void *data) 36 buddy_idle_cb(GaimConnection *gc, char *who, void *data)
37 { 37 {
38 write_status(gc, who, "has become idle."); 38 write_status(gc, who, "has become idle.");
39 } 39 }
40 40
41 static void 41 static void
42 buddy_unidle_cb(struct gaim_connection *gc, char *who, void *data) 42 buddy_unidle_cb(GaimConnection *gc, char *who, void *data)
43 { 43 {
44 write_status(gc, who, "is no longer idle."); 44 write_status(gc, who, "is no longer idle.");
45 } 45 }
46 46
47 static gboolean 47 static gboolean

mercurial