Correctly handle case when a nick comes between a -s flag and a server name on the command line

The -s flag resets after the next server on the command line, but it was also incorrectly resetting
if a nickname was seen as well. This meant that a command line like this failed to use SSL:

BitchX -s -p 9999 gauze irc.choopa.net

Also update the help text to correctly reflect the operation of the -s flag.

Reported by gauze.
This commit is contained in:
Kevin Easton
2017-12-01 23:00:11 +11:00
parent a4ef0798ac
commit 973ae0e4da
2 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
[Changes 1.2.2]
* Correctly handle case when a nick comes between a -s flag and a server name
on the command line (reported by gauze). (caf)
* Show correct count of matching commands in /HELP. (caf)
* Simplify rsindex() and strsearch() exported functions. (caf)