-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for banlist messages #1009
Conversation
is it common to push to lobby? not to the channel the command is being called? |
Could use the special Chan type, same as /list. |
In my experience, most IRC clients only push to the channel if it is a message directly. I mean, ideally we would want to show a modal or something, with buttons to remove from the banlist, but this is just a first version so that we support it at all.
I guess we could, yeah. I think the thing is we don't want to end up just everything being a channel, because then we will end up not doing it in a nicer way, as we are a web app and we want to do things nicely for the user, not just in the simplest way possible. But if you think that's the best thing to do for this first version, then I'm happy to do that. |
Well, I've pushed a commit to have a special chan for banlist entries. I'm not using any special message format (like the chanlist is). It's probably best if I do, and I pass the other information through to the client for showing. For reference, this is what we get back from the server:
So it's probably worth showing the banned by and the banned at. I'll add that. See what you think about this. |
@YaManicKill, mind adding an entry in the "commands" section of the help window, between |
681715b
to
8f535a4
Compare
Alright, I have completely changed this. Now it is a custom chan with custom messages, basically the same as how
I have also added It works quite nicely now, I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's really cool, @YaManicKill! I just tested quickly and didn't look at the code at all yet, but the result is 👌. I'll give it a proper review sometime soon.
Mind rebasing on master
to take into account the recent changes to special channels by #1018?
Yeah, I'll do that soon. |
8f535a4
to
b1572a1
Compare
Rebased onto master, and using the new stuff from #1018. |
0c48ac7
to
a77e007
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
a77e007
to
0d37977
Compare
@YaManicKill just so you know I didn't make any changes but when I wanted to test I got that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but please add /banlist
to client's autocompletion list.
0d37977
to
ef5b7da
Compare
ef5b7da
to
1e504f4
Compare
Alright, I have added the command to the autocompletion list, and I have rebased and squashed. I think this is good to go now, then, |
…list Add support for banlist messages
Fixes #1008