Properly handle the instance name when upgraded from an old version
authorMatt Mullins <mmullins@mmlx.us>
Sat, 3 Sep 2011 03:43:11 +0000 (22:43 -0500)
committerMatt Mullins <mmullins@mmlx.us>
Sat, 3 Sep 2011 03:43:11 +0000 (22:43 -0500)
irc/irc_net_sup.erl

index e779fdc..b456a4a 100644 (file)
 start_link(Instance) ->
        supervisor:start_link(?MODULE, Instance).
 
+%% Handle the old-style (IRC application version 3) initialization pattern
+init({Instance, _Config}) ->
+    init(Instance);
+
+%% Handle the new-style initialization call
 init(Instance) ->
     Supervisor = self(),
     TableId = ets:new(?MODULE, [set, public]),