Fix a regression with the previous changes to $help() - topics with embedded
spaces are enclosed in quotes eg. $help("cdcc tresend").
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@129 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -4777,6 +4777,9 @@ BUILT_IN_FUNCTION(function_help, words)
|
||||
extern int read_file(FILE *, int);
|
||||
|
||||
static int first_time = 1;
|
||||
char *subject;
|
||||
|
||||
GET_STR_ARG(subject, words);
|
||||
|
||||
if (first_time)
|
||||
{
|
||||
@@ -4795,8 +4798,7 @@ BUILT_IN_FUNCTION(function_help, words)
|
||||
fclose(help_file);
|
||||
}
|
||||
|
||||
if (words && *words)
|
||||
get_help_topic(words, 1);
|
||||
get_help_topic(subject, 1);
|
||||
#endif
|
||||
RETURN_EMPTY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user