equal
deleted
inserted
replaced
2062 int row = -1; |
2062 int row = -1; |
2063 char *p; |
2063 char *p; |
2064 int quote = FALSE; |
2064 int quote = FALSE; |
2065 |
2065 |
2066 // Not a command? |
2066 // Not a command? |
2067 if ((ptr_inputline == inputLine) || (inputLine[0] != '/')) { |
2067 if ((ptr_inputline == inputLine) || (inputLine[0] != COMMAND_CHAR)) { |
2068 if (!current_buddy) return -2; |
2068 if (!current_buddy) return -2; |
2069 if (buddy_gettype(BUDDATA(current_buddy)) == ROSTER_TYPE_ROOM) { |
2069 if (buddy_gettype(BUDDATA(current_buddy)) == ROSTER_TYPE_ROOM) { |
2070 *p_row = inputLine; |
2070 *p_row = inputLine; |
2071 return -1; |
2071 return -1; |
2072 } |
2072 } |
2251 |
2251 |
2252 void scr_handle_CtrlC(void) |
2252 void scr_handle_CtrlC(void) |
2253 { |
2253 { |
2254 if (!Curses) return; |
2254 if (!Curses) return; |
2255 // Leave multi-line mode |
2255 // Leave multi-line mode |
2256 process_command("/msay abort"); |
2256 process_command(mkcmdstr("msay abort")); |
2257 // Same as Ctrl-g, now |
2257 // Same as Ctrl-g, now |
2258 scr_cancel_current_completion(); |
2258 scr_cancel_current_completion(); |
2259 scr_end_current_completion(); |
2259 scr_end_current_completion(); |
2260 check_offset(-1); |
2260 check_offset(-1); |
2261 refresh_inputline(); |
2261 refresh_inputline(); |
2442 boundcmd = settings_get(SETTINGS_TYPE_BINDING, asciikey); |
2442 boundcmd = settings_get(SETTINGS_TYPE_BINDING, asciikey); |
2443 |
2443 |
2444 if (boundcmd) { |
2444 if (boundcmd) { |
2445 gchar *cmd, *boundcmd_locale; |
2445 gchar *cmd, *boundcmd_locale; |
2446 boundcmd_locale = from_utf8(boundcmd); |
2446 boundcmd_locale = from_utf8(boundcmd); |
2447 cmd = g_strdup_printf("/%s", boundcmd_locale); |
2447 cmd = g_strdup_printf(mkcmdstr("%s"), boundcmd_locale); |
2448 scr_CheckAutoAway(TRUE); |
2448 scr_CheckAutoAway(TRUE); |
2449 if (process_command(cmd)) |
2449 if (process_command(cmd)) |
2450 return 255; // Quit |
2450 return 255; // Quit |
2451 g_free(boundcmd_locale); |
2451 g_free(boundcmd_locale); |
2452 g_free(cmd); |
2452 g_free(cmd); |