Add `weechat-auto-reconnect-retries'

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Store last connected port in `weechat-last-port'.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Merge branch 'master' into auto-reconnect

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Merge branch 'master' into auto-reconnect

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Fix default values for weechat-port-default etc.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Disable reconnects when running `weechat-disconnect'.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
weechat-connect: Fix mode history & mode defaults

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
[broken] Try to add auto-reconnect.

Currently partially broken because the disconnect-hook fires at the
wrong time. The code needs a refactoring before this approach will
work.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Merge branch 'master' into auto-reconnect

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>

Conflicts:
	weechat.el
Move handling of process status events to a separate function.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Fix typo. (M)

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Don't run disconnect-hooks when disconnecting interactively.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Print 'disconnect' message when disconnecting interactively

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Don't add the relay ping timer to the disconnect-hook.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Improve docstrings in weechat-relay.el. (M)

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Reconnect after (expt 2 (- max-reconnects reconnects-left)) seconds.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Don't ping when weechat.el isn't connected.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Don't try to reconnect if no password is stored.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Fix minor issues. (M)

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Cleanup `weechat-handle-reconnect-maybe'. (M)

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>