Mercurial > pidgin.yaz
comparison plugins/statenotify.c @ 6695:0c5637b5462e
[gaim-migrate @ 7221]
This is contact support. Really.
It has a few bugs left in it, like sorting not working, and stuff like that,
but it's pretty solid for the most part.
I'm not in the mood to do a whole lot of typing, so just use and enjoy.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 02 Sep 2003 03:41:10 +0000 |
parents | 42fdf16f1dad |
children | 083d1e4a9c78 |
comparison
equal
deleted
inserted
replaced
6694:2d2f04c5c7d2 | 6695:0c5637b5462e |
---|---|
4 #include "conversation.h" | 4 #include "conversation.h" |
5 #include "debug.h" | 5 #include "debug.h" |
6 #include "signals.h" | 6 #include "signals.h" |
7 | 7 |
8 static void | 8 static void |
9 write_status(struct buddy *buddy, const char *message) | 9 write_status(GaimBuddy *buddy, const char *message) |
10 { | 10 { |
11 GaimConversation *conv; | 11 GaimConversation *conv; |
12 const char *who; | 12 const char *who; |
13 char buf[256]; | 13 char buf[256]; |
14 | 14 |
23 | 23 |
24 gaim_conversation_write(conv, NULL, buf, -1, GAIM_MESSAGE_SYSTEM, time(NULL)); | 24 gaim_conversation_write(conv, NULL, buf, -1, GAIM_MESSAGE_SYSTEM, time(NULL)); |
25 } | 25 } |
26 | 26 |
27 static void | 27 static void |
28 buddy_away_cb(struct buddy *buddy, void *data) | 28 buddy_away_cb(GaimBuddy *buddy, void *data) |
29 { | 29 { |
30 write_status(buddy, _("%s has gone away.")); | 30 write_status(buddy, _("%s has gone away.")); |
31 } | 31 } |
32 | 32 |
33 static void | 33 static void |
34 buddy_unaway_cb(struct buddy *buddy, void *data) | 34 buddy_unaway_cb(GaimBuddy *buddy, void *data) |
35 { | 35 { |
36 write_status(buddy, _("%s is no longer away.")); | 36 write_status(buddy, _("%s is no longer away.")); |
37 } | 37 } |
38 | 38 |
39 static void | 39 static void |
40 buddy_idle_cb(struct buddy *buddy, void *data) | 40 buddy_idle_cb(GaimBuddy *buddy, void *data) |
41 { | 41 { |
42 write_status(buddy, _("%s has become idle.")); | 42 write_status(buddy, _("%s has become idle.")); |
43 } | 43 } |
44 | 44 |
45 static void | 45 static void |
46 buddy_unidle_cb(struct buddy *buddy, void *data) | 46 buddy_unidle_cb(GaimBuddy *buddy, void *data) |
47 { | 47 { |
48 write_status(buddy, _("%s is no longer idle.")); | 48 write_status(buddy, _("%s is no longer idle.")); |
49 } | 49 } |
50 | 50 |
51 static gboolean | 51 static gboolean |