Fix typo in names of irc_sup's children v4
authorMatt Mullins <mmullins@mmlx.us>
Sun, 14 Aug 2011 20:34:50 +0000 (15:34 -0500)
committerMatt Mullins <mmullins@mmlx.us>
Sun, 14 Aug 2011 20:43:01 +0000 (15:43 -0500)
bot.rel
irc/irc.app
irc/irc.appup
irc/irc_sup.erl

diff --git a/bot.rel b/bot.rel
index 0c9d98f..6409fc3 100644 (file)
--- a/bot.rel
+++ b/bot.rel
@@ -1,8 +1,8 @@
-{release, {"erlbot", "3"},
+{release, {"erlbot", "4"},
  {erts, "5.8.3"},
  [{kernel, "2.14.3"},
   {stdlib, "1.17.3"},
   {sasl, "2.1.9.3"},
   {core, "2"},
-  {irc, "2"}]
+  {irc, "3"}]
 }.
index afc2f94..733f658 100644 (file)
@@ -1,6 +1,6 @@
 {application, irc,
  [{description, "IRC protocol application"},
-  {vsn, "2"},
+  {vsn, "3"},
   {modules, [irc_util, irc_app, irc_sup, irc_net_sup, irc_conn]},
   {registered, [irc_sup]},
   {applications, [core]},
index 7453c7c..b6f474a 100644 (file)
@@ -1,4 +1,4 @@
-{"2",
- [{"1", [{load_module, irc_conn}]}],
- [{"1", [{load_module, irc_conn}]}]
+{"3",
+ [{"2", [{load_module, irc_sup}]}],
+ [{"2", [{load_module, irc_sup}]}]
 }.
index 32311cc..9ae2bd3 100644 (file)
@@ -19,7 +19,7 @@ init(_) ->
     {ok, {Restart, Children}}.
 
 config_to_childspec({Instance, Config}) ->
-    {instance, % child's name
+    {Instance, % child's name
      {irc_net_sup, start_link, [Instance, Config]}, % MFA
      permanent, % Restart
      5, % shutdown [timeout of 5 seconds]