Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created September 1, 2010 18:53
Show Gist options
  • Save 3rd-Eden/561153 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/561153 to your computer and use it in GitHub Desktop.
// check if the client has been assigned to a channel yet, if this is not the case make it happen :D
// this allow us to broadcast messages to appropiate connections
if( !client.channel ){
client.channel = resp.domain + ":" + resp.channel + resp.account;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment