mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 18:12:12 +02:00
Merge 219244f536 into f24ad9a366
This commit is contained in:
commit
e430817997
1 changed files with 4 additions and 2 deletions
|
|
@ -876,13 +876,15 @@ static void sig_complete_topic(GList **list, WINDOW_REC *window,
|
|||
int *want_space)
|
||||
{
|
||||
const char *topic;
|
||||
int wordlen;
|
||||
|
||||
g_return_if_fail(list != NULL);
|
||||
g_return_if_fail(word != NULL);
|
||||
|
||||
if (*word == '\0' && IS_CHANNEL(window->active)) {
|
||||
if (IS_CHANNEL(window->active)) {
|
||||
topic = CHANNEL(window->active)->topic;
|
||||
if (topic != NULL) {
|
||||
wordlen = strlen(word);
|
||||
if (topic != NULL && strncmp(topic, word, wordlen) == 0) {
|
||||
*list = g_list_append(NULL, g_strdup(topic));
|
||||
signal_stop();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue