summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--debian/changelog6
-rw-r--r--src/ui.c3
3 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index 063e4a5..f4a8915 100644
--- a/README.md
+++ b/README.md
@@ -30,8 +30,7 @@ you need to add [my apt repository](https://prog.sijanec.eu/).
built packages only exist for `amd64`, `arm64` and `i386`. for other architectures grab the source package:
```
-apt source discord.c
-# untar and follow install from source
+apt-build install discord.c
```
### caveman style install
diff --git a/debian/changelog b/debian/changelog
index d3fc85f..ab47f57 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,8 @@
discord.c (0.0.3-3) stable; urgency=low
- * replaced the TLS library for libcurl from openssl to gnutls. this should
- fix disord.c getting killed by SIGPIPEs, as referenced by
- https://curl.se/mail/lib-2013-06/0007.html
+ * replaced the TLS library for libcurl from openssl to gnutls. this should fix disord.c getting killed by SIGPIPEs, as referenced by https://curl.se/mail/lib-2013-06/0007.html
+ * added the // command for escaping slashes. you can now send
+ messages starting with a slash to the server by using two slashes.
-- Anton Luka Šijanec <anton@sijanec.eu> Tue, 13 Jul 2021 15:20:00 +0200
discord.c (0.0.3-2) stable; urgency=low
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");
}