Skip to content

Commit

Permalink
Update error message about --datadir
Browse files Browse the repository at this point in the history
Noone remembers these days that at some point ZNC supported using the
same config directory, but different znc.conf. So now the old message is
just confusing.

However, nowadays many people confuse "/znc foo" in IRC client with
"znc foo" in shell.
  • Loading branch information
DarthGandalf committed Apr 17, 2015
1 parent 7c64eba commit cd1f334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Expand Up @@ -248,8 +248,9 @@ int main(int argc, char** argv) {
}

if (optind < argc) {
CUtils::PrintError("Specifying a config file as an argument isn't supported anymore.");
CUtils::PrintError("Use --datadir instead.");
CUtils::PrintError("Unrecognized command line arguments.");
CUtils::PrintError("Did you mean to run `/znc " + CString(argv[optind]) + "' in IRC client instead?");
CUtils::PrintError("Hint: `/znc " + CString(argv[optind]) + "' is an alias for `/msg *status " + CString(argv[optind]) + "'");
return 1;
}

Expand Down

0 comments on commit cd1f334

Please sign in to comment.