diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2017-09-25 23:32:10 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2017-09-25 23:49:22 +0200 |
commit | d6fb56faf85dd1abbb8789295c290c162a02067f (patch) | |
tree | 3d217b9d1f05e74c51b1eecd4357f464137406dd /.gitignore | |
parent | 2f43d1b6466c74e8774e2833214f847eb559f15a (diff) | |
download | wee-slack-d6fb56faf85dd1abbb8789295c290c162a02067f.tar.gz |
fix: Make /topic behave the same way as on IRC
This refactors the topic command, and makes it behave the same way as it
does on IRC. The fixes include:
- `/topic` prints the topic instead of clearing it
- `/topic #channel` prints the topic for that channel in that channels
buffer instead of setting the topic to #channel
- `/topic #channel [...]` for a channel that doesn't exist gives a
proper error message
The patch also removes some unused code, refactors the logic and removes
the `/slack topic` command, since using `/topic` should suffice.
The reason it returs WEECHAT_RC_OK_EAT when the channel isn't found, is
so weechat doesn't print an error message such as:
irc: command "topic" must be executed on irc buffer (server or channel)
Fixes #405
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions