12.02.2013 Views

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

isChanOp()<br />

if (document.cs.isIRCOp())<br />

{ // This is the call being illustrated<br />

alert('You are an Operator or Administrator');<br />

}<br />

}<br />

<br />

This function returns boolean value (true or false).<br />

This function returns a non-zero (true) value if the Java Client user is<br />

a moderator in the current room.<br />

Example:<br />

<br />

// See if client the Java Client user is a moderator in<br />

the current room<br />

function checkModerator()<br />

{<br />

if (document.cs.isChanOp())<br />

{ // This is the call being illustrated<br />

alert('You are room moderator');<br />

}<br />

}<br />

<br />

isChannelRegistered()<br />

This function returns boolean value (true or false).<br />

This function returns a non-zero (true) value if the current room is<br />

registered.<br />

Example:<br />

<br />

// See if client the current room is registered<br />

function checkRegistered()<br />

{<br />

if (document.cs.isChannelRegistered())<br />

102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!