Modify

#1182 new enhancement

"help" support in twitter mode

Reported by: anarcat+bitlbee@… Owned by:
Priority: wishlist Milestone:
Component: Twitter Version: 3.2.2
Keywords: Cc:
IRC client+version: Client-independent Operating System: Linux
OS version/distro:

Description

I keep on having to dig for the URL of this page:

http://wiki.bitlbee.org/HowtoTwitter

it would be useful to have an inline help at least for the list of commands...

maybe something as simple as this could do the job?

=== modified file 'protocols/twitter/twitter.c'
--- protocols/twitter/twitter.c 2014-09-27 14:54:35 +0000
+++ protocols/twitter/twitter.c 2014-12-04 02:20:19 +0000
@@ -607,6 +607,9 @@
                goto eof;
        } else if (!set_getbool(&ic->acc->set, "commands") && allow_post) {
                /* Not supporting commands if "commands" is set to true/strict. */
+       } else if (g_strcasecmp(cmd[0], "help") == 0) {
+               imcb_chat_log(ic, "twitter command summary: post <msg>, undo [id], favorite [id|user], follow [user], unfollow [user], report [id|user], rt [id|user], reply [id|user]");
+               goto eof;
        } else if (g_strcasecmp(cmd[0], "undo") == 0) {
                if (cmd[1] == NULL)
                        twitter_status_destroy(ic, td->last_status_id);

maybe refer to the wiki page as well?

Attachments (0)

Change History (4)

comment:1 Changed at 2014-12-29T23:56:32Z by dx

fwiw, there's "help set commands" in &bitlbee

comment:2 Changed at 2016-07-29T18:01:38Z by ilf

Why is this not merged, but referenced in https://wiki.bitlbee.org/HowtoTwitter? Let's just implement this, no?

comment:3 in reply to:  2 Changed at 2016-07-30T02:39:35Z by dx

Replying to ilf:

Why is this not merged, but referenced in https://wiki.bitlbee.org/HowtoTwitter? Let's just implement this, no?

It's a wiki. Anyone can edit it.

comment:4 Changed at 2016-07-30T12:18:46Z by ilf

No, I meant: It's a patch, you can merge it. :)

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.