chm_operonly extension: use Unreal's numeric (520)
irssi still does not recognize this properly, oh well
This commit is contained in:
parent
8576d6944a
commit
4d94f914f8
|
@ -58,7 +58,7 @@ h_can_join(hook_data_channel *data)
|
||||||
struct Channel *chptr = data->chptr;
|
struct Channel *chptr = data->chptr;
|
||||||
|
|
||||||
if((chptr->mode.mode & chmode_flags['O']) && !IsOper(source_p)) {
|
if((chptr->mode.mode & chmode_flags['O']) && !IsOper(source_p)) {
|
||||||
sendto_one_notice(source_p, ":Only IRC Operators could join this channel!");
|
sendto_one_numeric(source_p, 520, "%s :Cannot join channel (+O) - you are not an IRC operator", chptr->chname);
|
||||||
data->approved = ERR_CUSTOM;
|
data->approved = ERR_CUSTOM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue