From c738966d74899dc4aa81799690effb204db6675e Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 29 Jul 2012 00:37:54 +0100 Subject: [PATCH] Fixed command number bug --- configure.ac | 2 +- src/command.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index eeac58bb..a01c0fc5 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.65]) -AC_INIT([profanity], [0.1.2], [boothj5web@gmail.com]) +AC_INIT([profanity], [0.1.3], [boothj5web@gmail.com]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_AUX_DIR([build-aux]) diff --git a/src/command.c b/src/command.c index 9ae60488..774c4264 100644 --- a/src/command.c +++ b/src/command.c @@ -74,7 +74,6 @@ static struct cmd_t commands[] = { { "/connect", _cmd_connect }, { "/dnd", _cmd_dnd }, { "/flash", _cmd_set_flash }, - { "/help", _cmd_help }, { "/prefs", _cmd_prefs }, { "/msg", _cmd_msg }, { "/online", _cmd_online }, @@ -84,9 +83,10 @@ static struct cmd_t commands[] = { { "/chlog", _cmd_set_chlog }, { "/who", _cmd_who }, { "/xa", _cmd_xa }, + { "/help", _cmd_help } }; -static const int num_cmds = 17; +static const int num_cmds = 18; gboolean process_input(char *inp)