aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/account.c
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into patched-masterMarius Halden2017-01-01-0/+3
|\
| * Per-account handle_unknowndequis2016-12-27-0/+3
| | | | | | | | Credit for the idea goes to russian XMPP spammers. Thanks!
* | Merge branch 'master' into patched-masterMarius Halden2016-11-21-0/+5
|\|
| * Manual merge with wilmer's approach to handling missing protocolsdequis2016-11-21-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out he already implemented pretty much the same thing in the parson branch... last year. The differences between the two approaches are subtle (there aren't too many ways to do this, some lines are the exact same thing) but I decided I like his version better, so this mostly reverts a handful of my changes while keeping others. The main advantage of his approach is that no fake protocols are registered, no actual prpl functions are called, and the missing prpl is a singleton constant. New things compared to the implementation in the other branch: - The explain_unknown_protocol() function. - Fixed named chatrooms throwing a warning and losing the "account" setting when saving. See changes in irc_im.c - Fixed the "server" setting dropping when saving. See account.c Differences with my previous implementation: - Accounts with missing protocols don't autoconnect - 'account list' marks them as "(missing!)"
* | Add account set offline_is_awayMarius Halden2016-05-07-0/+1
| |
* | Add support for per account set offline_user_quitsMarius Halden2016-05-07-0/+1
| |
* | Add support for multiple accounts in set accountMarius Halden2016-05-07-1/+89
| | | | | | | | | | | | | | | | | | The set account for control channels is now a comma separeted list of accounts instead of just one. If the user changes the tag of an accounts trough `account <id> set tag <new_tag>`, the account set will be updated to reflect this change for all relevant channels. If an account is removed trough `account <id> delete` it will be removed from the account set for all relevant channels.
* | Revert "Add support for multiple accounts in set account"Marius Halden2016-05-07-89/+1
| | | | | | | | This reverts commit 56fd7212a75237669de37589fc18e2e02444b3d2.
* | Add support for multiple accounts in set accountMarius Halden2016-05-07-1/+89
| | | | | | | | | | | | | | | | | | The set account for control channels is now a comma separeted list of accounts instead of just one. If the user changes the tag of an accounts trough `account <id> set tag <new_tag>`, the account set will be updated to reflect this change for all relevant channels. If an account is removed trough `account <id> delete` it will be removed from the account set for all relevant channels.
* | Revert "Better handling of set account"Marius Halden2016-05-07-87/+1
| | | | | | | | This reverts commit 8ad3c8517ecb1d9ac7cf04236f8634c16b9adde0.
* | Revert "Fix some errors created when changing set account to GSList"Marius Halden2016-05-07-0/+2
| | | | | | | | This reverts commit d3e3c73a4b194e666fb3a5f59a0badf6eba292ff.
* | Fix some errors created when changing set account to GSListMarius Halden2016-05-07-2/+0
| |
* | Better handling of set accountMarius Halden2016-05-07-1/+87
|/
* Support for locked-down accountsDennis Kaarsemaker2016-03-23-2/+2
| | | | | | | | | | | | | In certain situations, e.g. when working with pregenerated configurations, it is useful to be able lock down accounts so they cannot be deleted and authentication information (user, password, server) cannot be changed. We mark such sensitive settings with ACC_SET_LOCKABLE and will refuse to change them if the account is locked by setting the ACC_FLAG_LOCKED flag. This flag is stored in the xml files as account attribute locked="true".
* Remove facebook XMPP code, show error pointing at the new plugindequis2015-12-04-2/+0
| | | | | | | | | | | | | | Facebook's oauth has been broken for months, and in the last few days they broke plain logins too, so I just added an error message that says this when you do "account on": Facebook's XMPP service is gone. Try this instead: https://wiki.bitlbee.org/HowtoFacebookMQTT Also nuked all the oauth related code, except some parts of lib/oauth2.c which seemed generic enough to maybe help in the future with other not-really-compliant not-really-implementations of the not-really-oauth2 not-really-spec
* Reindent everything to K&R style with tabsIndent2015-02-20-271/+267
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Fix whatsapp local contact listsdequis2015-01-25-13/+1
| | | | | | | | | Had to move the code that adds contacts to imcb_connected to avoid dereferencing a null im_connection. Turns out this kind of local contact lists only applies to renamed contacts, though. It doesn't deal with libpurple's blist.xml at all (it could, there are APIs for it since 2.6.0)
* Replace isdigit/isalpha/.../tolower/toupper with glib variantsdequis2015-01-16-4/+4
| | | | | | | | | | | This fixes warnings about passing signed chars to them (apparently they are implemented as macros that do array lookups without checks in some platforms, yay) Specifically: functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper sed -ir "s/$functions/g_ascii_&/g" **/*.c
* Fix incorrect Free Software Foundation addressMatej Cepl2015-01-16-2/+2
|
* Gadugadu local contact storage (ticket #917)dequis2014-07-24-0/+26
| | | | Patch originally by MichaƂ Siejak, adapted for 3.2.1
* Allow use of "ac x set -del password" to use /oper to change the passwordWilmer van der Gaast2014-02-28-4/+12
| | | | | "securely". Patch from Flexo, bug #1117.
* Merging "storage" branch which I wrote long ago. It separates generation ofWilmer van der Gaast2013-04-20-5/+5
|\ | | | | | | | | | | XML-formatted user configs from disk I/O so we can try to start using other mechanisms to store them (a REST API or something, for example).
| * s/ACC_SET_NOSAVE/SET_NOSAVE/.Wilmer van der Gaast2012-06-07-5/+5
| |
* | I'm still bored on a long flight. Wrote a script to automatically updateWilmer van der Gaast2013-02-21-1/+1
| | | | | | | | | | | | | | my copyright mentions since some were getting pretty stale. Left files not touched since before 2012 alone so that this change doesn't touch almost EVERY source file.
* | Don't set up the account_on_timeout() timer if *_login() calledWilmer van der Gaast2013-01-13-3/+6
| | | | | | | | | | | | | | imcb_connected() immediately. It's an unusual thing to do since normally there's a bunch of I/O that needs to happen first, but some plugins would like to do this.
* | Allow "set -del password". #984Wilmer van der Gaast2012-08-19-12/+8
|/
* Be clearer about password settings being intentionally hidden (and notWilmer van der Gaast2010-11-21-1/+1
| | | | | really empty). Bug #657 and confusing BitlBee users since probably 2002.
* Extra NULL-check because it *is* possible that prpl->login returns withoutWilmer van der Gaast2010-11-21-1/+1
| | | | | even trying to log in.
* Time out if logging in takes too long (2m for now). Except for TwitterWilmer van der Gaast2010-11-21-0/+15
| | | | | | OAuth login, which requires user action. This mostly solves problems with OSCAR login silently failing, but may also be useful in other places.
* Allow including account tags in nicknames, and be a bit more clever aboutWilmer van der Gaast2010-07-28-6/+21
| | | | | the default tags (recognize AIM/ICQ/GTalk/Facebook).
* Use the account tag in a few places and store it in the XML file as anWilmer van der Gaast2010-07-24-0/+1
| | | | | attribute, not as a setting (since all accounts have it anyway).
* Adding account tags as a way to 100% uniquely identify an account.Wilmer van der Gaast2010-07-24-1/+49
| | | | | | protocol(screenname) doesn't do this and is a little bit long. These will be used for nick_format and XML storage.
* Automatically convert nick_source settings to their nick_convert equivalent.Wilmer van der Gaast2010-07-13-1/+19
|
* Reformat nicks whenever fullname/nick/group changes (but at least for nowWilmer van der Gaast2010-07-13-0/+1
| | | | | still only for offline users).
* First version of the nick_format setting.Wilmer van der Gaast2010-07-12-0/+2
|
* Import chatrooms configured in older BitlBee versions. Settings are currentlyWilmer van der Gaast2010-06-27-1/+0
| | | | | | ignored though. Also removing the old chat.[ch] files since they're really not important anymore.
* Cleaned lots of compiler warnings so I can get some signal again.Wilmer van der Gaast2010-04-01-1/+0
|
* nogaim.c is close to doing something useful again without speaking any IRCWilmer van der Gaast2010-03-31-17/+19
| | | | | itself.
* One total mess that doesn't do much yet, but reorganised some stuff andWilmer van der Gaast2010-03-26-0/+359
untying the IRC and the core parts a little bit. Lots of work left to do.