also make the loop more visible in the loop
Stupid and simple module that logs to stdout. The stdout port thing is needed so we can write Erlang binaries, no mather if they are utf, latin1 or something else. Seems no other function could do that in Erlang :( You can override* this module in your own project (that uses ircbot as a library/dependency). *override = create a module in your project with the same name as this, and make sure your project is before the dependecies in the ERL_LIBS path. Ex. ERL_LIBS=$PWD:$PWD/deps
The new api is not present in the erlang in Debian Stable (7.x) so revert it since I want it compatible with Debian Stable
Thsi was probably a sloppy copy/paste from somewhere. The childspec for the bot connection needs to be set to permanent, so that the supervisor will restart it when it dies. I haven't noticed this since the ircbot_fsm has never died until I noticed the race condition fixed in the previous commit. One more issue remains though. When restarted the plugins process blocks somewhere.
Immediately switch to standby state when the connection process dies. This avoids the situation when the bot tries to send something on a now 'undefined' connection (Conn) which kills the fsm. In standby state it never tries to send anything. this is obviously an old bug, and this commit makes the code a bit simpler, and correct.
I've made a new repo with just the plugins for our use, and cleaned up this repo. The master branch will have the most recent stable code from now on. Conflicts: settings.cfg.sample src/ircbot_plugin_google.erl src/ircbot_plugin_ping.erl src/ircbot_plugin_roll.erl src/ircbot_plugin_rps.erl src/ircbot_plugin_tell.erl src/ircbot_plugin_title.erl src/ircbot_plugin_viewer.erl