summary refs log tree commit diff
path: root/irc.c
diff options
context:
space:
mode:
authorC. McEnroe2020-02-01 19:37:48 -0500
committerC. McEnroe2020-02-01 19:37:55 -0500
commite5363bcae0f726455fb4198cd21d46721ad5e39a (patch)
treea4f191af1fe34b16663247fad0784476311dde8c /irc.c
parente289ff6b18e643eea4c72e04f7c0dc6ff768a335 (diff)
Implement the beginnings of UI
It takes so much code to do anything in curses...
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/irc.c b/irc.c
index cf8aab7..f07fcc8 100644
--- a/irc.c
+++ b/irc.c
@@ -104,10 +104,10 @@ int ircConnect(const char *host, const char *port) {
 static void debug(char dir, const char *line) {
 	if (!self.debug) return;
 	size_t len = strcspn(line, "\r\n");
-	/*uiFormat(
-		Debug, Cold, NULL, "\3%02d%c%c\3 %.*s",
+	uiFormat(
+		Debug, Cold, NULL, C"%d%c%c"C" %.*s",
 		Gray, dir, dir, (int)len, line
-	);*/
+	);
 	if (!isatty(STDERR_FILENO)) {
 		fprintf(stderr, "%c%c %.*s\n", dir, dir, (int)len, line);
 	}