about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c4
-rw-r--r--src/tools/autocomplete.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 60fe6d6d..f15de124 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -2780,7 +2780,7 @@ _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 currenlty connect.");
+        cons_show("You are not currenlty connected.");
         return TRUE;
     }
 
@@ -2804,7 +2804,7 @@ _cmd_disco(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 currenlty connect.");
+        cons_show("You are not currenlty connected.");
         return TRUE;
     }
 
diff --git a/src/tools/autocomplete.c b/src/tools/autocomplete.c
index 4b25edd6..0c56cac7 100644
--- a/src/tools/autocomplete.c
+++ b/src/tools/autocomplete.c
@@ -69,8 +69,7 @@ void
 autocomplete_free(Autocomplete ac)
 {
     autocomplete_clear(ac);
-    g_free(ac);
-    ac = NULL;
+    free(ac);
 }
 
 gint