irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

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

Open irssibot opened 14 years ago

irssibot commented 14 years ago

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 :-).

irssibot commented 14 years ago

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 " 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...

irssibot commented 14 years ago

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.