--- a/muc_log.vala Tue Oct 23 23:50:28 2012 +0400
+++ b/muc_log.vala Wed Oct 24 00:36:02 2012 +0400
@@ -25,7 +25,6 @@
}
~RoomLog() {
write(Time.local(new time_t()), "logstop", "", "Log stopped");
- file.flush();
}
public void write(Time time, string _class, string nick, string str) {
@@ -77,6 +76,7 @@
var times = time.format("%H:%M:%S");
file.printf("<tr id='l_%s' class='%s'><td class='time'><a id='i_%s' href='#i_%s'>%s</a></td>", id, _class, id, id, times);
file.printf("<td class='nick'>%s</td><td class='text'>%s</td></tr>\n", nick, str);
+ file.flush();
}
}