diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-08 08:26:19 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-08 08:26:19 -0700 |
commit | 997a15d29473920020c49acaf4e3966c52a6e7aa (patch) | |
tree | 4b6b8d20ea00ea2e92f7dc9673c250cd02a1beea /testing/toxic/prompt.c | |
parent | a3a0fb57cb8804d619e04cfc22f8154db067fa25 (diff) | |
parent | d9750569ac1ff49442ea5158b99e78fd24ec9715 (diff) |
Merge pull request #393 from Nominate/patch-1
Removed superfluous statusmsg
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r-- | testing/toxic/prompt.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index b50792fe..eaa8d7bc 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"); |