summary refs log tree commit diff
path: root/irc.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-06 14:19:52 -0400
committerJune McEnroe <june@causal.agency>2018-08-06 14:19:52 -0400
commitd6fb797b11aa6dd031032faf425be3ce5a69661d (patch)
treee348e4ec6ed53a9700219336fd6a3e3733093a56 /irc.c
parentRename line editing functions (diff)
downloadcatgirl-d6fb797b11aa6dd031032faf425be3ce5a69661d.tar.gz
catgirl-d6fb797b11aa6dd031032faf425be3ce5a69661d.zip
Use wchar_t strings for all of UI
vaswprintf is a nightmare.
Diffstat (limited to '')
-rw-r--r--irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irc.c b/irc.c
index 02a9f64..1692a73 100644
--- a/irc.c
+++ b/irc.c
@@ -99,7 +99,7 @@ void ircFmt(const char *format, ...) {
 	int len = vasprintf(&buf, format, ap);
 	va_end(ap);
 	if (!buf) err(EX_OSERR, "vasprintf");
-	if (chat.verbose) uiFmt("<<< %.*s", len - 2, buf);
+	if (chat.verbose) uiFmt(L"<<< %.*s", len - 2, buf);
 	ircWrite(buf, len);
 	free(buf);
 }
@@ -119,7 +119,7 @@ void ircRead(void) {
 	char *crlf, *line = buf;
 	while ((crlf = strnstr(line, "\r\n", &buf[len] - line))) {
 		crlf[0] = '\0';
-		if (chat.verbose) uiFmt(">>> %s", line);
+		if (chat.verbose) uiFmt(L">>> %s", line);
 		handle(line);
 		line = &crlf[2];
 	}