From b4f496e7e9a22768f76c13b96deb1997bab55414 Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 19 Nov 2016 04:32:48 -0300 Subject: Improve handling of unknown protocols / missing plugins Instead of failing to load the config, a fake prpl is created to load the account, keep its settings, and refuse to log in with a helpful error message. Also added a new explain_unknown_protocol() function which returns text which attempts to explain why a protocol is missing, handling several typical cases, including the future removal of several dead libpurple plugins. That message is shown when logging in to a loaded account with a missing protocol and when adding a new one with 'account add', with the difference that the latter doesn't leave a placeholder fake account. --- protocols/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Makefile') diff --git a/protocols/Makefile b/protocols/Makefile index b4565ab6..ae969bde 100644 --- a/protocols/Makefile +++ b/protocols/Makefile @@ -12,7 +12,7 @@ _SRCDIR_ := $(_SRCDIR_)protocols/ endif # [SH] Program variables -objects = account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o +objects = account.o bee.o bee_chat.o bee_ft.o bee_user.o nogaim.o unknown.o # [SH] The next two lines should contain the directory name (in $(subdirs)) -- cgit v1.2.3