about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-14 15:34:17 +0000
committerJames Booth <boothj5@gmail.com>2013-12-14 15:34:17 +0000
commit107fdd355e487793e53799ce3ebed0659263a2f7 (patch)
treee7b2996921be06fd6ab4c8ff25f30e1b82dda3a4 /src/command
parent3f6b40246a243c072770700d67c9818a7d293f6c (diff)
downloadprofani-tty-107fdd355e487793e53799ce3ebed0659263a2f7.tar.gz
Added simple mock test, refactored roster
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c8
-rw-r--r--src/command/command.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/src/command/command.c b/src/command/command.c
index a213d141..0ab8b013 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -36,6 +36,7 @@
 #include "config/preferences.h"
 #include "config/theme.h"
 #include "contact.h"
+#include "roster_list.h"
 #include "jid.h"
 #include "log.h"
 #include "muc.h"
@@ -133,7 +134,6 @@ static gboolean _cmd_prefs(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_priority(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_quit(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_reconnect(gchar **args, struct cmd_help_t help);
-static gboolean _cmd_rooms(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_bookmark(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_roster(gchar **args, struct cmd_help_t help);
 static gboolean _cmd_software(gchar **args, struct cmd_help_t help);
@@ -2455,7 +2455,7 @@ _cmd_roster(gchar **args, struct cmd_help_t help)
 
         char *jid = args[1];
 
-        roster_remove(jid);
+        roster_send_remove(jid);
 
         return TRUE;
     }
@@ -2916,13 +2916,13 @@ _cmd_decline(gchar **args, struct cmd_help_t help)
     return TRUE;
 }
 
-static gboolean
+gboolean
 _cmd_rooms(gchar **args, struct cmd_help_t help)
 {
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
     if (conn_status != JABBER_CONNECTED) {
-        cons_show("You are not currenlty connected.");
+        cons_show("You are not currently connected.");
         return TRUE;
     }
 
diff --git a/src/command/command.h b/src/command/command.h
index c20413c8..8743d662 100644
--- a/src/command/command.h
+++ b/src/command/command.h
@@ -49,4 +49,6 @@ void cmd_history_append(char *inp);
 char *cmd_history_previous(char *inp, int *size);
 char *cmd_history_next(char *inp, int *size);
 
+gboolean _cmd_rooms(gchar **args, struct cmd_help_t help);
+
 #endif