summaryrefslogtreecommitdiff
path: root/src/core/servers.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-08-09 11:17:31 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-08-09 11:17:31 +0000
commit2ad623acd0ae1e5bca04fd2e21cfc0749c46059c (patch)
tree4921661c07c0c257b0c42d451e326314d8d43215 /src/core/servers.c
parent452db286da579b163b65d964c452c0d73de21637 (diff)
downloadirssi-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.c17
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;