projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cea2705
)
Restrict some network info to plugins
author
Darren
<darren@darrenwhitlen.com>
Thu, 14 Aug 2014 06:17:47 +0000
(07:17 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Thu, 14 Aug 2014 06:17:47 +0000
(07:17 +0100)
client/src/app.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/app.js
b/client/src/app.js
index 31a0f65369c9b91cbbf23a108be054eb37b0dd79..e7d643d626c28f6ac4e901e4d4070a9ce52ddf09 100644
(file)
--- a/
client/src/app.js
+++ b/
client/src/app.js
@@
-135,13
+135,22
@@
_kiwi.global = {
});
\r
\r
// Add the networks getters/setters
\r
});
\r
\r
// Add the networks getters/setters
\r
- obj.get = function() {
\r
- var network = getNetwork();
\r
+ obj.get = function(name) {
\r
+ var network, restricted_keys;
\r
+
\r
+ network = getNetwork();
\r
if (!network) {
\r
return;
\r
}
\r
\r
if (!network) {
\r
return;
\r
}
\r
\r
- return network.get.apply(network, arguments);
\r
+ restricted_keys = [
\r
+ 'password'
\r
+ ];
\r
+ if (restricted_keys.indexOf(name) > -1) {
\r
+ return undefined;
\r
+ }
\r
+
\r
+ return network.get(name);
\r
};
\r
\r
obj.set = function() {
\r
};
\r
\r
obj.set = function() {
\r