Clean up subs.have by splitting it into logical pieces

(imported from commit 0fe55aa62ccc95cae5c9aba565b0e4c04692fb46)
This commit is contained in:
Leo Franchi
2013-06-12 15:13:19 -04:00
parent a9e4441bee
commit 969e0dd827
8 changed files with 26 additions and 33 deletions

View File

@@ -512,7 +512,7 @@ function validate_stream_message() {
var response;
if (!subs.have(stream_name)) {
if (!subs.is_subscribed(stream_name)) {
switch(check_stream_for_send(stream_name)) {
case "does-not-exist":
response = "<p>The stream <b>" +