about summary refs log tree commit diff stats
path: root/src/chat_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chat_log.c')
-rw-r--r--src/chat_log.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/chat_log.c b/src/chat_log.c
index 7c70c8a1..afb60491 100644
--- a/src/chat_log.c
+++ b/src/chat_log.c
@@ -37,14 +37,14 @@ static void _close_file(gpointer key, gpointer value, gpointer user_data);
 void
 chat_log_init(void)
 {
-    log_msg(PROF_LEVEL_INFO, "prof", "Initialising chat logs");
+    log_info("Initialising chat logs");
     tz = g_time_zone_new_local();
     logs = g_hash_table_new(NULL, (GEqualFunc) g_strcmp0);
 }
 
 void
-chat_log_chat(const char * const login, char *other, 
-    const char * const msg, chat_log_direction_t direction)
+chat_log_chat(const gchar * const login, gchar *other, 
+    const gchar * const msg, chat_log_direction_t direction)
 {
     gpointer logpp = g_hash_table_lookup(logs, other);
     FILE *logp;
@@ -55,12 +55,12 @@ chat_log_chat(const char * const login, char *other,
         g_string_append(log_file, "/.profanity/log");
         create_dir(log_file->str);
     
-        char *login_dir = str_replace(login, "@", "_at_");
+        gchar *login_dir = str_replace(login, "@", "_at_");
         g_string_append_printf(log_file, "/%s", login_dir);
         create_dir(log_file->str);
         free(login_dir);
 
-        char *other_file = str_replace(other, "@", "_at_");
+        gchar *other_file = str_replace(other, "@", "_at_");
         g_string_append_printf(log_file, "/%s.log", other_file);
         logp = fopen(log_file->str, "a");
         free(other_file);
@@ -87,7 +87,7 @@ chat_log_chat(const char * const login, char *other,
 void
 chat_log_close(void)
 {
-    log_msg(PROF_LEVEL_INFO, "prof", "Closing down chat logs");
+    log_info("Closing down chat logs");
     g_hash_table_foreach(logs, (GHFunc) _close_file, NULL);
     g_time_zone_unref(tz);
 }
thj5@gmail.com> 2013-02-10 18:16:06 +0000 committer James Booth <boothj5@gmail.com> 2013-02-10 18:16:06 +0000 Added p_contact_add_resource' href='/danisanti/profani-tty/commit/src/contact.h?id=8c9f91624646d22121166446f3c16edbcd7026b6'>8c9f9162 ^
6e46e8fe ^

facb2a65 ^
d017999a ^

8c9f9162 ^
b5e06a07 ^
6e46e8fe ^
facb2a65 ^
8e90f7a4 ^
c5f76721 ^
8e90f7a4 ^
a84e4ade ^
8e90f7a4 ^
a84e4ade ^
8e90f7a4 ^
2f2fa8de ^
b5e06a07 ^
a0eda420 ^
d300e8e7 ^
a061b0d4 ^

8e90f7a4 ^
6794fb81 ^
a84e4ade ^
e955df88 ^
d017999a ^

9dd5456f ^
581c1e8b ^
383d91ec ^
5314e597 ^

6e46e8fe ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75