mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 18:52:22 -05:00
Fix issues removing autojoin channels
- Makes remove case insensitive - Fixes crashing when channel not found
This commit is contained in:
parent
ccf49aa48d
commit
5f297950a2
@ -842,7 +842,7 @@ servlist_favchan_find (ircnet *net, char *channel, int *pos)
|
|||||||
while (list)
|
while (list)
|
||||||
{
|
{
|
||||||
favchan = list->data;
|
favchan = list->data;
|
||||||
if (strcmp (favchan->name, channel) == 0)
|
if (g_ascii_strcasecmp (favchan->name, channel) == 0)
|
||||||
{
|
{
|
||||||
if (pos)
|
if (pos)
|
||||||
{
|
{
|
||||||
|
@ -1088,10 +1088,13 @@ servlist_autojoinedit (ircnet *net, char *channel, gboolean add)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
fav = servlist_favchan_find (net, channel, NULL);
|
fav = servlist_favchan_find (net, channel, NULL);
|
||||||
|
if (fav)
|
||||||
|
{
|
||||||
servlist_favchan_remove (net, fav);
|
servlist_favchan_remove (net, fav);
|
||||||
servlist_save ();
|
servlist_save ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
servlist_toggle_global_user (gboolean sensitive)
|
servlist_toggle_global_user (gboolean sensitive)
|
||||||
|
Loading…
Reference in New Issue
Block a user