pidgin/pidgin

zephyr_login refactoring

2021-01-11, Arkadiy Illarionov
d06e6660b39c
zephyr_login refactoring

* Add `login_tzc` and `login_zeph02` functions to remove redundant comparison
* Add `get_zephyr_realm` function to reduce code duplication
* Extract some functions
* Use `FALSE` in `purple_account_get_bool`
* Replace `read_anyone` and `read_zsubs` variables with functions calls

Testing Done:
Compile.

Reviewed at https://reviews.imfreedom.org/r/405/
subdir('libpurple')
subdir('protocols')
if ENABLE_GTK
subdir('pidgin')
else
pidgin_doc = []
endif
if enable_consoleui
subdir('finch')
else
finch_doc = []
endif
alias_target('doc', libpurple_doc, protocols_doc, pidgin_doc, finch_doc)