Removed trim method from util

This commit is contained in:
James Booth
2012-04-26 23:27:40 +01:00
parent 381d4b8dc9
commit a41dab3d3c
4 changed files with 2 additions and 76 deletions

View File

@@ -47,13 +47,14 @@ gboolean process_input(char *inp)
{
gboolean result = FALSE;
g_strstrip(inp);
if (strlen(inp) > 0)
history_append(inp);
if (strlen(inp) == 0) {
result = TRUE;
} else if (inp[0] == '/') {
trim(inp);
char inp_cpy[strlen(inp) + 1];
strcpy(inp_cpy, inp);
char *command = strtok(inp_cpy, " ");