diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-03-18 20:18:58 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-03-19 14:04:53 +0100 |
commit | 6745dd6159afc6ff220d09d7adc1923218fa756b (patch) | |
tree | ed7c3222c31506efef15053e39ce4b03b9fd3317 /src/core/commands.h | |
parent | 795b7de80891d51adfb912798ca954431cbf702b (diff) | |
download | irssi-6745dd6159afc6ff220d09d7adc1923218fa756b.zip |
Throw an error when a chatnet has no available url
If you type /connect <CN> and the chatnet <CN> has no url available
let's just throw an error instead of trying to process <CN> as a url.
Diffstat (limited to 'src/core/commands.h')
-rw-r--r-- | src/core/commands.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/commands.h b/src/core/commands.h index 72105ad3..93d6276b 100644 --- a/src/core/commands.h +++ b/src/core/commands.h @@ -41,7 +41,8 @@ enum { CMDERR_INVALID_TIME, /* invalid time specification */ CMDERR_INVALID_CHARSET, /* invalid charset specification */ CMDERR_EVAL_MAX_RECURSE, /* eval hit recursion limit */ - CMDERR_PROGRAM_NOT_FOUND /* program not found */ + CMDERR_PROGRAM_NOT_FOUND, /* program not found */ + CMDERR_NO_SERVER_DEFINED, /* no server has been defined for a given chatnet */ }; /* Return the full command for `alias' */ |