do_chat(player, c, msg);
return 1;
case CMATCH_NONE:
+ /* If this isn't from teh command just return 0 */
+ if(!source)
+ return 0;
if (find_channel(name, &c, player) == CMATCH_NONE) {
if (source)
notify(player, T("CHAT: No such channel."));
return 0;
+ } else { /* The channel exists! See if we can send a message to it */
+ do_chat(player, c, msg);
}
}
return 0;
u = onchannel(player, chan);
canhear = u ? !Chanuser_Gag(u) : 0;
/* If the channel isn't open, you must hear it in order to speak */
- if (!Channel_Open(chan)) {
+ if (!Channel_Open(chan) && !div_powover(player, ChanCreator(chan), "Chat")) {
if (!u) {
notify(player, T("You must be on that channel to speak on it."));
return;