Module pattern for subs.js

(imported from commit adfe466ea892fbfe5f13a5f346e4fd00f194c42a)
This commit is contained in:
Keegan McAllister
2012-10-18 15:37:07 -04:00
parent 2a2c0187c5
commit 95f8eea14b
5 changed files with 56 additions and 47 deletions

View File

@@ -146,7 +146,7 @@ function validate_stream_message() {
return false;
}
if (!subscribed_to(stream_name)) {
if (!subs.have(stream_name)) {
if (!check_stream_for_send(stream_name)) {
return false;
}