mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
change to strstr
This commit is contained in:
parent
5dba9fd0cc
commit
fe9a443380
1 changed files with 1 additions and 1 deletions
|
|
@ -772,7 +772,7 @@ static void cmd_show_keys(const char *searchkey, int full)
|
||||||
|
|
||||||
if ((len == 0 ||
|
if ((len == 0 ||
|
||||||
(full ? strncmp(rec->key, searchkey, len) == 0 :
|
(full ? strncmp(rec->key, searchkey, len) == 0 :
|
||||||
g_strrstr(rec->key, searchkey) != NULL)) &&
|
strstr(rec->key, searchkey) != NULL)) &&
|
||||||
(!full || rec->key[len] == '\0')) {
|
(!full || rec->key[len] == '\0')) {
|
||||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_LIST,
|
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_BIND_LIST,
|
||||||
rec->key, rec->info->id, rec->data == NULL ? "" : rec->data);
|
rec->key, rec->info->id, rec->data == NULL ? "" : rec->data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue