JavaScript Editor Javascript debugger     Website design 


Set channel mode flags for user (PHP 4 >= 4.0.5, PHP 5 <= 5.0.5)
bool ircg_channel_mode ( resource connection, string channel, string mode_spec, string nick )

Set channel mode flags for channel on server connected to by connection. Mode flags are passed in mode_spec and are applied to the user specified by nick.



A connection resource handle returned by ircg_pconnect().


The channel name as #name.


The mode to be applied on nick.

Mode flags are set or cleared by specifying a mode character and prepending it with a plus or minus character, respectively. E.g. operator mode is granted by '+o' and revoked by '-o', as passed as mode_spec.


The user on which to apply the given mode.

Return Values

Returns TRUE on success or FALSE on failure.