1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

irc: rename functions to search modelist items

This commit is contained in:
Sébastien Helleu
2018-03-25 10:05:58 +02:00
parent 8f3c9a7378
commit 0d74b03004
5 changed files with 12 additions and 10 deletions
+2 -1
View File
@@ -285,7 +285,8 @@ irc_command_mode_masks (struct t_irc_server *server,
number = strtol (argv[pos_masks], &error, 10);
if (error && !error[0])
{
ptr_item = irc_modelist_item_number (ptr_modelist, number - 1);
ptr_item = irc_modelist_item_search_number (ptr_modelist,
number - 1);
if (ptr_item)
mask = strdup (ptr_item->mask);
}