summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorNominate <thomas.bladon@st-hughs.ox.ac.uk>2013-08-08 11:09:46 +0100
committerNominate <thomas.bladon@st-hughs.ox.ac.uk>2013-08-08 11:09:46 +0100
commitd9750569ac1ff49442ea5158b99e78fd24ec9715 (patch)
tree498f33128517bc865dc97c03142c239f03882317 /testing
parent225f74e844299c405b744a9d03f4fcc0430b430a (diff)
Removed superfluous statusmsg
Users can just respecify their status with a message. This will also encourage users to think about which status is actually appropriate instead of just leaving the status alone.
Diffstat (limited to 'testing')
-rw-r--r--testing/toxic/prompt.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c
index 661d881f..b3d6d229 100644
--- a/testing/toxic/prompt.c
+++ b/testing/toxic/prompt.c
@@ -228,17 +228,6 @@ static void execute(ToxWindow *self, char *u_cmd)
228 } 228 }
229 } 229 }
230 230
231 else if (!strncmp(cmd, "statusmsg ", strlen("statumsg "))) {
232 char *msg = strchr(cmd, ' ');
233 if (msg == NULL) {
234 wprintw(self->window, "Invalid syntax.\n");
235 return;
236 }
237 msg++;
238 m_set_statusmessage((uint8_t*) msg, strlen(msg)+1);
239 wprintw(self->window, "Status set to: %s\n", msg);
240 }
241
242 else if (!strncmp(cmd, "nick ", strlen("nick "))) { 231 else if (!strncmp(cmd, "nick ", strlen("nick "))) {
243 char *nick = strchr(cmd, ' '); 232 char *nick = strchr(cmd, ' ');
244 if (nick == NULL) { 233 if (nick == NULL) {
@@ -372,7 +361,6 @@ static void print_usage(ToxWindow *self)
372 wprintw(self->window, " connect <ip> <port> <key> : Connect to DHT server\n"); 361 wprintw(self->window, " connect <ip> <port> <key> : Connect to DHT server\n");
373 wprintw(self->window, " add <id> <message> : Add friend\n"); 362 wprintw(self->window, " add <id> <message> : Add friend\n");
374 wprintw(self->window, " status <type> <message> : Set your status\n"); 363 wprintw(self->window, " status <type> <message> : Set your status\n");
375 wprintw(self->window, " statusmsg <message> : Set your status\n");
376 wprintw(self->window, " nick <nickname> : Set your nickname\n"); 364 wprintw(self->window, " nick <nickname> : Set your nickname\n");
377 wprintw(self->window, " accept <number> : Accept friend request\n"); 365 wprintw(self->window, " accept <number> : Accept friend request\n");
378 wprintw(self->window, " myid : Print your ID\n"); 366 wprintw(self->window, " myid : Print your ID\n");