summaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-07-13 21:06:25 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2021-07-13 21:06:25 +0200
commitfdb2a88a5eb656462840b74de01e9e098c520fa5 (patch)
tree89ff265855fd9e9c65753df7200a5c681171d743 /src/ui.c
parentreplaced openssl with gnutls (diff)
downloaddiscord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.tar
discord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.tar.gz
discord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.tar.bz2
discord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.tar.lz
discord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.tar.xz
discord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.tar.zst
discord.c-fdb2a88a5eb656462840b74de01e9e098c520fa5.zip
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c3
1 files changed, 3 insertions, 0 deletions
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");
}