projects
/
erlbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d64934a
)
Properly handle the instance name when upgraded from an old version
author
Matt Mullins
<mmullins@mmlx.us>
Sat, 3 Sep 2011 03:43:11 +0000
(22:43 -0500)
committer
Matt Mullins
<mmullins@mmlx.us>
Sat, 3 Sep 2011 03:43:11 +0000
(22:43 -0500)
irc/irc_net_sup.erl
patch
|
blob
|
history
diff --git
a/irc/irc_net_sup.erl
b/irc/irc_net_sup.erl
index
e779fdc
..
b456a4a
100644
(file)
--- a/
irc/irc_net_sup.erl
+++ b/
irc/irc_net_sup.erl
@@
-16,6
+16,11
@@
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]),