Replace deprecated g_io_channel_close with g_io_channel_shutdown.

g_io_channel_close flushes the buffer and does not return errors.
g_io_channel_shutdown(handle, TRUE, NULL) keeps that behavior.
Merge pull request #32 from dajohi/g_io_channel_shutdown

Replace deprecated g_io_channel_close with g_io_channel_shutdown.
Silence a compiler warning.

If the first g_module_symbol call failed, module_deinit was set
to value2, which is uninitialized.  Move the assignment after
checking variable found to silence the warning.
Merge pull request #33 from dajohi/modules_load

Silence a compiler warning.
Fix error to refer to elinks, as that is what it checks for
Merge pull request #34 from dgl/autogen-fix

Fix error to refer to elinks, as that is what it checks for
Replace deprecated g_tree_traverse with g_tree_foreach.

g_tree_foreach traverses the tree in sorted order, which is what
irssi was already doing.
Add support for utf8 chars to /bind

Fixes: #18
Fixes: bio#553
Merge pull request #36 from dajohi/g_tree_foreach

Replace deprecated g_tree_traverse with g_tree_foreach.
g_strcasecmp -> g_ascii_strcasecmp
Merge pull request #37 from dajohi/g_ascii_strcasecmp

g_strcasecmp -> g_ascii_strcasecmp
Disallow unloading of static modules
speed up window_item_find by interning name and removing call to channel_find
speed up nicklist by using hash
Merge pull request #24 from ailin-nemui/speedup

Speed up nicklist and window_find operations
Update usercount to version in scripts git
Document that /UPGRADE doesn't work with SSL
Merge pull request #38 from dgl/scripts

Update usercount to version in scripts git
Merge pull request #39 from dgl/upgrade

Document that /UPGRADE doesn't work with SSL
Add -usermode to /NETWORK syntax