comparison plugins/statenotify.c @ 6489:aefe4067d3a3

[gaim-migrate @ 7003] some tweaks from Robot101 committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 18 Aug 2003 15:42:55 +0000
parents 70d5122bc3ff
children 42fdf16f1dad
comparison
equal deleted inserted replaced
6488:e5e8d21bd4d8 6489:aefe4067d3a3
17 if (conv == NULL) 17 if (conv == NULL)
18 return; 18 return;
19 19
20 who = gaim_get_buddy_alias(buddy); 20 who = gaim_get_buddy_alias(buddy);
21 21
22 g_snprintf(buf, sizeof(buf), "%s %s", who, message); 22 g_snprintf(buf, sizeof(buf), message, who);
23 23
24 gaim_conversation_write(conv, NULL, buf, -1, WFLAG_SYSTEM, time(NULL)); 24 gaim_conversation_write(conv, NULL, buf, -1, WFLAG_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(struct buddy *buddy, void *data)
29 { 29 {
30 write_status(buddy, _("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(struct buddy *buddy, void *data)
35 { 35 {
36 write_status(buddy, _("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(struct buddy *buddy, void *data)
41 { 41 {
42 write_status(buddy, _("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(struct buddy *buddy, void *data)
47 { 47 {
48 write_status(buddy, _("is no longer idle.")); 48 write_status(buddy, _("%s is no longer idle."));
49 } 49 }
50 50
51 static gboolean 51 static gboolean
52 plugin_load(GaimPlugin *plugin) 52 plugin_load(GaimPlugin *plugin)
53 { 53 {