Merge pull request #647 from nornagon/prefix-lookup
Fill in prefixLookup on network initialization
This commit is contained in:
commit
93c4c14b72
@ -48,6 +48,11 @@ module.exports = function(irc, network) {
|
||||
});
|
||||
|
||||
irc.on("socket connected", function() {
|
||||
network.prefixLookup = {};
|
||||
irc.network.options.PREFIX.forEach(function(mode) {
|
||||
network.prefixLookup[mode.mode] = mode.symbol;
|
||||
});
|
||||
|
||||
network.channels[0].pushMessage(client, new Msg({
|
||||
text: "Connected to the network."
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user