From d9750569ac1ff49442ea5158b99e78fd24ec9715 Mon Sep 17 00:00:00 2001 From: Nominate Date: Thu, 8 Aug 2013 11:09:46 +0100 Subject: 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. --- testing/toxic/prompt.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'testing') 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) } } - else if (!strncmp(cmd, "statusmsg ", strlen("statumsg "))) { - char *msg = strchr(cmd, ' '); - if (msg == NULL) { - wprintw(self->window, "Invalid syntax.\n"); - return; - } - msg++; - m_set_statusmessage((uint8_t*) msg, strlen(msg)+1); - wprintw(self->window, "Status set to: %s\n", msg); - } - else if (!strncmp(cmd, "nick ", strlen("nick "))) { char *nick = strchr(cmd, ' '); if (nick == NULL) { @@ -372,7 +361,6 @@ static void print_usage(ToxWindow *self) wprintw(self->window, " connect : Connect to DHT server\n"); wprintw(self->window, " add : Add friend\n"); wprintw(self->window, " status : Set your status\n"); - wprintw(self->window, " statusmsg : Set your status\n"); wprintw(self->window, " nick : Set your nickname\n"); wprintw(self->window, " accept : Accept friend request\n"); wprintw(self->window, " myid : Print your ID\n"); -- cgit v1.2.3