mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Merge pull request #647 from nornagon/prefix-lookup
Fill in prefixLookup on network initialization
This commit is contained in:
commit
93c4c14b72
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue