Bail on channel rank listing if unregistered

This commit is contained in:
calzoneman 2013-05-27 15:17:29 -04:00
parent 7e4dc5a569
commit 4a14dbc89f
1 changed files with 4 additions and 0 deletions

View File

@ -418,6 +418,10 @@ function listChannelRanks(chan) {
return [];
}
if(!chan.registered) {
return [];
}
var query = createQuery(
"SELECT * FROM `?` WHERE 1",
["chan_"+chan+"_ranks"]