Merge pull request #221 from thelounge/astorije/quickfix-query
Disallow /query on non-nicks
This commit is contained in:
commit
1ab136d897
@ -14,6 +14,11 @@ exports.input = function(network, chan, cmd, args) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If target doesn't start with an allowed character, ignore
|
||||||
|
if (!/^[a-zA-Z_\\\[\]{}^`|]/.test(target)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var newChan = new Chan({
|
var newChan = new Chan({
|
||||||
type: Chan.Type.QUERY,
|
type: Chan.Type.QUERY,
|
||||||
name: target
|
name: target
|
||||||
|
Loading…
Reference in New Issue
Block a user