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.c6
-rw-r--r--src/tools/autocomplete.c3
-rw-r--r--src/tools/parser.c10
3 files changed, 9 insertions, 10 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 1673707c..6cf60ce7 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -336,7 +336,7 @@ static struct cmd_t command_defs[] =
         { "/invite contact [message]",
           "-------------------------",
           "Send a direct invite to the specified contact to the current chat room.",
-          "If a message is supplied it will be send as the reason for the invite.",
+          "If a message is supplied it will be sent as the reason for the invite.",
           NULL } } },
 
     { "/invites",
@@ -2809,7 +2809,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;
     }
 
@@ -2900,7 +2900,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
diff --git a/src/tools/parser.c b/src/tools/parser.c
index f4cfc3d2..dabf7128 100644
--- a/src/tools/parser.c
+++ b/src/tools/parser.c
@@ -242,15 +242,15 @@ parse_args_with_freetext(const char * const inp, int min, int max)
                     }
                 }
             } else {
-                if (!in_freetext && curr_uni == ' ') {
+                if (in_freetext) {
+                    token_size += g_unichar_to_utf8(curr_uni, NULL);
+                } else if (curr_uni == ' ') {
                     tokens = g_slist_append(tokens, g_strndup(token_start,
                         token_size));
                     token_size = 0;
                     in_token = FALSE;
-                } else {
-                    if (curr_uni != '"') {
-                        token_size += g_unichar_to_utf8(curr_uni, NULL);
-                    }
+                } else if (curr_uni != '"') {
+                    token_size += g_unichar_to_utf8(curr_uni, NULL);
                 }
             }
         }
246' href='#n246'>246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
le='Blame the previous revision' href='/akkartik/mu/blame/continuation5.mu?h=hlt&id=b89b822439f47a490a1b764e14a1ed1b73059cba'>^
3b776ac3 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49