Modify

#1173 new enhancement

[patch] Twitter protocol: account_tag for nick and channel

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

Description

This is a patch for bitlbee-3.2.2 and its twitter protocol:

  • twitter account is accessible now either under <account_tag> nickname or through #<account_tag> channel
  • in contrast to status quo (twitter_<handle> / #twitter_<handle>) it enables user to have a consistent namings, configurable by setting particular twitter account's tag

Patch can be found also at <​https://github.com/mkoskar/pkgbuilds/tree/master/bitlbee-mkoskar>.

Attachments (1)

twitter-account-tag-for-nick-and-channel.patch (5.5 KB) - added by mk@… at 2014-07-24T23:08:17Z.

Download all attachments as: .zip

Change History (4)

comment:1 Changed at 2014-07-24T23:34:25Z by dx

Thanks for the patch!

While the idea behind the patch is good, there should be some way to keep previously added accounts under the old style channel names. Not entirely sure how, other than making this behavior optional under a setting.

comment:2 Changed at 2014-07-24T23:46:26Z by mk@…

Well, if that is the case it can be done by data migration. For each pre-existing account set the "tag" to "twitter_<handle>". I'm not sure if there is any process established how to do automatic data migrations on first-time new version running. Also it could be pushed on packagers, or on users, it's just simplest solution to go and edit account XML file.

comment:3 Changed at 2019-12-10T23:40:31Z by Thaodan

I rebased the patch here: https://github.com/Thaodan/bitlbee/tree/twitter_tag_names

Maybe set the default tag of the twitter account to tag_<handle>?

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.