# HG changeset patch # User Mikael Berthe # Date 1135538420 -3600 # Node ID 514aa246081d37450759f51e2f9fd59e6e512a2a # Parent cfab93886a880e958daa0e681f4af83b6528ee11 Log to the tracelog file when joining a room diff -r cfab93886a88 -r 514aa246081d mcabber/src/jabglue.c --- a/mcabber/src/jabglue.c Fri Dec 23 22:57:34 2005 +0100 +++ b/mcabber/src/jabglue.c Sun Dec 25 20:20:20 2005 +0100 @@ -1106,6 +1106,10 @@ gchar *mbuf; if (buddy_getnickname(room_elt->data) == NULL) { buddy_setnickname(room_elt->data, rname); + // Add a message to the tracelog file + mbuf = g_strdup_printf("You have joined %s as \"%s\"", roomjid, rname); + scr_LogPrint(LPRINT_LOG, "%s", mbuf); + g_free(mbuf); mbuf = g_strdup_printf("You have joined as \"%s\"", rname); } else { mbuf = g_strdup_printf("%s has joined", rname);