equal
deleted
inserted
replaced
2524 update_roster = TRUE; |
2524 update_roster = TRUE; |
2525 } |
2525 } |
2526 |
2526 |
2527 static void room_topic(gpointer bud, char *arg) |
2527 static void room_topic(gpointer bud, char *arg) |
2528 { |
2528 { |
2529 gchar *msg; |
|
2530 |
|
2531 if (!buddy_getinsideroom(bud)) { |
2529 if (!buddy_getinsideroom(bud)) { |
2532 scr_LogPrint(LPRINT_NORMAL, "You are not in this room."); |
2530 scr_LogPrint(LPRINT_NORMAL, "You are not in this room."); |
2533 return; |
2531 return; |
2534 } |
2532 } |
2535 |
2533 |
2543 return; |
2541 return; |
2544 } |
2542 } |
2545 |
2543 |
2546 arg = to_utf8(arg); |
2544 arg = to_utf8(arg); |
2547 // Set the topic |
2545 // Set the topic |
2548 msg = g_strdup_printf("%s has set the topic to: %s", mkcmdstr("me"), arg); |
2546 jb_send_msg(buddy_getjid(bud), NULL, ROSTER_TYPE_ROOM, arg, NULL, NULL, NULL); |
2549 jb_send_msg(buddy_getjid(bud), msg, ROSTER_TYPE_ROOM, arg, NULL, NULL, NULL); |
|
2550 g_free(arg); |
2547 g_free(arg); |
2551 g_free(msg); |
|
2552 } |
2548 } |
2553 |
2549 |
2554 static void room_destroy(gpointer bud, char *arg) |
2550 static void room_destroy(gpointer bud, char *arg) |
2555 { |
2551 { |
2556 gchar *msg; |
2552 gchar *msg; |