Add explicit default value for NICK_COMPLETION_CHAR.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@160 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-03-06 11:14:51 +00:00
parent a9e1608865
commit 97174632dc
3 changed files with 5 additions and 2 deletions

View File

@@ -1193,8 +1193,10 @@ BUILT_IN_KEYBINDING(send_line)
{
char auto_comp_char;
char *p;
/* this is for people with old BitchX.sav files that set it to '\0' */
if (!(auto_comp_char = (char)get_int_var(NICK_COMPLETION_CHAR_VAR)))
auto_comp_char = ':';
auto_comp_char = DEFAULT_NICK_COMPLETION_CHAR;
/* possible nick completion */
if ((p = strchr(tmp, auto_comp_char)) && do_hook(NICK_COMP_LIST, "%s", line))