Irssi core bugs

All the Irssi bugs should go here, please select the proper version when reporting the bug.

Please see the Irssi core http://www.irssi.org/ChangeLog for recent updates.
| Tasklist |

FS#747 - "-" is not accepted as first character for a new topic

Attached to Project: Irssi core bugs
Opened by Johannes Schickel (LordHoto) - Tuesday, 06 April 2010, 00:29 GMT+2
Task Type Bug Report
Category core
Status Unconfirmed
Assigned To No-one
Operating System Linux
Severity Low
Priority Normal
Reported Version Irssi 0.8.12
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When using topic like this:

/topic -17d

I only get "-!- Irssi: Unknown option: 17d".

I can work around this by using the channel name before the actual topic, but for convenience it would be nicer to just allow "-" as first character in a topic too. Of course "-delete" would be an exception here :-).
This task depends upon

Comment by Wouter Coekaerts (coekie) - Tuesday, 06 April 2010, 21:51 GMT+2
I disagree. Compare it to how it works in a shell: typing "cat -foo" to cat a file called "-foo" won't work either.

But tab completion for "/topic <tab>" should be improved to take this into account when changing an existing topic of a channel that starts with "-".

Maybe we could adopt the convention that a "-" on its own should mean that any following arguments should not be seen as options...
Comment by Johannes Schickel (LordHoto) - Tuesday, 13 April 2010, 01:37 GMT+2
It is true that in cat it does not work either (at least not without "--", which is of course similar to use the channel name in irssi). On the other hand as far as I know Weechat supports "-" too.

Loading...