RFC 1459 does not require channel name be above 0 characters, only that there's a prefix involved, this behavior is present elsewhere in xchat's join channel dialog, making this match.
This commit is contained in:
parent
247d84fbd1
commit
0791c8f069
@ -86,7 +86,7 @@ joind_ok_cb (GtkWidget *ok, server *serv)
|
|||||||
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (serv->gui->joind_radio2)))
|
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (serv->gui->joind_radio2)))
|
||||||
{
|
{
|
||||||
char *text = (char *)gtk_entry_get_text (GTK_ENTRY (serv->gui->joind_entry));
|
char *text = (char *)gtk_entry_get_text (GTK_ENTRY (serv->gui->joind_entry));
|
||||||
if (strlen (text) < 2)
|
if (strlen (text) < 1)
|
||||||
{
|
{
|
||||||
fe_message (_("Channel name too short, try again."), FE_MSG_ERROR);
|
fe_message (_("Channel name too short, try again."), FE_MSG_ERROR);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user