diff options
author | Timo Sirainen <cras@irssi.org> | 2002-08-09 11:17:31 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-08-09 11:17:31 +0000 |
commit | 2ad623acd0ae1e5bca04fd2e21cfc0749c46059c (patch) | |
tree | 4921661c07c0c257b0c42d451e326314d8d43215 /src/core/servers.c | |
parent | 452db286da579b163b65d964c452c0d73de21637 (diff) | |
download | irssi-2ad623acd0ae1e5bca04fd2e21cfc0749c46059c.zip |
/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
Diffstat (limited to 'src/core/servers.c')
-rw-r--r-- | src/core/servers.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/servers.c b/src/core/servers.c index 47dc688c..e2972ddd 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -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; |