/DISCONNECT <tag> works again for not-yet-connected servers.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2874 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-08-09 11:17:31 +00:00 committed by cras
commit 2ad623acd0
3 changed files with 22 additions and 1 deletions

View file

@ -481,6 +481,23 @@ SERVER_REC *server_find_tag(const char *tag)
return NULL;
}
SERVER_REC *server_find_lookup_tag(const char *tag)
{
GSList *tmp;
g_return_val_if_fail(tag != NULL, NULL);
if (*tag == '\0') return NULL;
for (tmp = lookup_servers; tmp != NULL; tmp = tmp->next) {
SERVER_REC *server = tmp->data;
if (g_strcasecmp(server->tag, tag) == 0)
return server;
}
return NULL;
}
SERVER_REC *server_find_chatnet(const char *chatnet)
{
GSList *tmp;