Add better support for numeric 489 ERR_SECUREONLYCHAN along with a print format

modified:   src/fe-common/irc/fe-events-numeric.c
modified:   src/fe-common/irc/module-formats.c
modified:   src/fe-common/irc/module-formats.h
This commit is contained in:
Michael Hansen 2020-05-15 20:25:41 +02:00
commit ae6c8a1bd5
3 changed files with 29 additions and 2 deletions

View file

@ -63,6 +63,7 @@ FORMAT_REC fecommon_irc_formats[] = {
{ "joinerror_banned", "Cannot join to channel {channel $0} (You are banned)", 1, { 0 } },
{ "joinerror_bad_key", "Cannot join to channel {channel $0} (Bad channel key)", 1, { 0 } },
{ "joinerror_bad_mask", "Cannot join to channel {channel $0} (Bad channel mask)", 1, { 0 } },
{ "joinerror_secure_only", "Cannot join to channel {channel $0} (Secure clients only)", 1, { 0 } },
{ "joinerror_unavail", "Cannot join to channel {channel $0} (Channel is temporarily unavailable)", 1, { 0 } },
{ "joinerror_duplicate", "Channel {channel $0} already exists - cannot create it", 1, { 0 } },
{ "channel_rejoin", "Channel {channel $0} is temporarily unavailable, this is normally because of netsplits. Irssi will now automatically try to rejoin back to this channel until the join is successful. Use /RMREJOINS command if you wish to abort this.", 1, { 0 } },