-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support for CTCP commands #80
Comments
I can do some testing. I looked through the code and it seems like it should be fine. I didn't implement the |
I would appreciate the testing. Also, added the CTCP |
I think the problem is that the raw response command should be:
Currently it is:
I also added support for sending the |
Fixed the syntax for the
Added the equivalent |
Looks good. It might be nice to make that work for private messages, too, but I think that would require duplicating code or creating another function. I'll see if I can find a nice way to do it. |
After using it for a bit, I think it would be good to change the color of the nick which sends an ACTION command. It's impossible to tell the difference between a normal message and an ACTION, especially when the message is sent to the non-default channel. I think that would be a lot easier than changing the message text to include the nick, which would require allocating a new string. Here's my implementation of that: |
looking a little bit more at CTCP, i think just implementing the /me equivalent command alias might be too limiting. Instead, a generic ACTION privmsg should be preferred (i.e. Also, regarding color coding the nick to help identify ACTION messages received might not be the best idea. For a new users, this might be confusing since there is no explanation to what specific colors mean. As kirc should be intuitive as possible, it might make more sense to prefix each message with the protocol type. Will play around with it a bit. still trying to figure out which looks the cleanest and most intuitive. |
Pushed 9525bb8 for now. Command structure is as previously described and all |
There are a few CTCP (client-to-client protocol) commands that are used frequently in IRC. The most useful/common are:
VERSION
PING
ACTION
CLIENTINFO
It would be great if
kirc
supported these.I've added support for them in my fork, but since I'm nowhere near as good at C programming as @mcpcpc, I expect there's a much more elegant solution:
https://git.kasad.com/kirc/log/?h=devel
The text was updated successfully, but these errors were encountered: