mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
Merge pull request #221 from thelounge/astorije/quickfix-query
Disallow /query on non-nicks
This commit is contained in:
commit
1ab136d897
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ exports.input = function(network, chan, cmd, args) {
|
|||
return;
|
||||
}
|
||||
|
||||
// If target doesn't start with an allowed character, ignore
|
||||
if (!/^[a-zA-Z_\\\[\]{}^`|]/.test(target)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var newChan = new Chan({
|
||||
type: Chan.Type.QUERY,
|
||||
name: target
|
||||
|
|
Loading…
Reference in a new issue