- Timestamp:
- 2015-12-01T04:55:21Z (9 years ago)
- Branches:
- master
- Children:
- 48b5fef
- Parents:
- 03df717
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r03df717 r05aba55 1288 1288 }; 1289 1289 1290 /* Absolutely no connection context at all. Thanks purple! brb crying */ 1291 static void *prplcb_notify_message(PurpleNotifyMsgType type, const char *title, 1292 const char *primary, const char *secondary) 1293 { 1294 char *text = g_strdup_printf("%s%s - %s%s%s", 1295 (type == PURPLE_NOTIFY_MSG_ERROR) ? "Error: " : "", 1296 title, 1297 primary ?: "", 1298 (primary && secondary) ? " - " : "", 1299 secondary ?: "" 1300 ); 1301 1302 if (local_bee->ui->log) { 1303 local_bee->ui->log(local_bee, "purple", text); 1304 } 1305 1306 g_free(text); 1307 1308 return NULL; 1309 } 1310 1290 1311 static void *prplcb_notify_email(PurpleConnection *gc, const char *subject, const char *from, 1291 1312 const char *to, const char *url) … … 1348 1369 static PurpleNotifyUiOps bee_notify_uiops = 1349 1370 { 1350 NULL,1371 prplcb_notify_message, 1351 1372 prplcb_notify_email, 1352 1373 NULL,
Note: See TracChangeset
for help on using the changeset viewer.