equal
deleted
inserted
replaced
1419 gotmessage(type, from, body, enc, timestamp); |
1419 gotmessage(type, from, body, enc, timestamp); |
1420 if (tmp) |
1420 if (tmp) |
1421 g_free(tmp); |
1421 g_free(tmp); |
1422 } |
1422 } |
1423 |
1423 |
1424 static void evscallback_subcription(eviqs *evp, guint evcontext) |
1424 static void evscallback_subscription(eviqs *evp, guint evcontext) |
1425 { |
1425 { |
1426 char *barejid; |
1426 char *barejid; |
1427 char *buf; |
1427 char *buf; |
1428 |
1428 |
1429 if (evcontext == EVS_CONTEXT_TIMEOUT) { |
1429 if (evcontext == EVS_CONTEXT_TIMEOUT) { |
1501 } |
1501 } |
1502 |
1502 |
1503 // Create a new event item |
1503 // Create a new event item |
1504 evn = evs_new(EVS_TYPE_SUBSCRIPTION, EVS_MAX_TIMEOUT); |
1504 evn = evs_new(EVS_TYPE_SUBSCRIPTION, EVS_MAX_TIMEOUT); |
1505 if (evn) { |
1505 if (evn) { |
1506 evn->callback = &evscallback_subcription; |
1506 evn->callback = &evscallback_subscription; |
1507 evn->data = g_strdup(r); |
1507 evn->data = g_strdup(r); |
1508 buf = g_strdup_printf("Please use /event %s accept|reject", evn->id); |
1508 buf = g_strdup_printf("Please use /event %s accept|reject", evn->id); |
1509 } else { |
1509 } else { |
1510 buf = g_strdup_printf("Unable to create a new event!"); |
1510 buf = g_strdup_printf("Unable to create a new event!"); |
1511 } |
1511 } |