From fdb2a88a5eb656462840b74de01e9e098c520fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 13 Jul 2021 21:06:25 +0200 Subject: added slash command escaping --- src/ui.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 725e7cc..0a4abe4 100644 --- a/src/ui.c +++ b/src/ui.c @@ -137,6 +137,9 @@ int dc_ui_processline (struct dc_thread_control * t, char * l, WINDOW * textwin, t->power_api = atoi(strchr(l, ' ')+1); DC_SIMPLEPRINT(textwin, 4, "t->power_api = %d\n", atoi(strchr(l, ' ')+1)); break; + case '/': /* so we can send messages that */ + l++; /* start with a slash to the */ + break; /* server by escaping */ default: DC_SIMPLEPRINT(textwin, 1, DC_I18N_UI_CNF "\n"); } -- cgit v1.2.3