diff options
author | dequis <dx@dxzone.com.ar> | 2016-11-13 21:37:14 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-11-13 21:37:14 -0300 |
commit | 9f03c472fef309878ff2f3bc720d51e6d03077f1 (patch) | |
tree | b49d1be8c2e870e39432a3a9fc5cc41086ade894 /protocols/twitter/twitter.c | |
parent | ea902752503fc5b356d6513911081ec932d804f2 (diff) |
Improve support for protocols which don't require a password
This adds a prpl_options_t enum with flags, which mostly just brings
OPT_PROTO_{NO_PASSWORD,PASSWORD_OPTIONAL} from libpurple as
PRPL_OPT_{NO_PASSWORD,PASSWORD_OPTIONAL}
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index b2039171..8bc6140a 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -1091,7 +1091,7 @@ void twitter_initmodule() { struct prpl *ret = g_new0(struct prpl, 1); - ret->options = OPT_NOOTR; + ret->options = PRPL_OPT_NOOTR | PRPL_OPT_NO_PASSWORD; ret->name = "twitter"; ret->login = twitter_login; ret->init = twitter_init; @@ -1118,5 +1118,6 @@ void twitter_initmodule() /* And an identi.ca variant: */ ret = g_memdup(ret, sizeof(struct prpl)); ret->name = "identica"; + ret->options = PRPL_OPT_NOOTR; register_protocol(ret); } |