diff options
author | Timo Sirainen <cras@irssi.org> | 2004-01-20 10:57:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-01-20 10:57:57 +0000 |
commit | 217283caeaf5fc19e671a56547610ceb42e2ea7b (patch) | |
tree | 7f2fa9d29fdd2d9bb9f7782f1c928a53cebe70d2 /src/irc/core/irc-queries.c | |
parent | 3ccbd0405b8d3185a143c150a5b42070403fdc36 (diff) | |
download | irssi-217283caeaf5fc19e671a56547610ceb42e2ea7b.zip |
isupport patch by David Leadbeater
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3211 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-queries.c')
-rw-r--r-- | src/irc/core/irc-queries.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index 0ca1b94e..a2a545f5 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -22,6 +22,7 @@ #include "signals.h" #include "misc.h" +#include "irc-nicklist.h" #include "irc-servers.h" #include "irc-queries.h" @@ -40,6 +41,20 @@ QUERY_REC *irc_query_create(const char *server_tag, return rec; } +QUERY_REC *irc_query_find(IRC_SERVER_REC *server, const char *nick) +{ + GSList *tmp; + + for (tmp = server->queries; tmp != NULL; tmp = tmp->next) { + QUERY_REC *rec = tmp->data; + + if (server->nick_comp_func(rec->name, nick) == 0) + return rec; + } + + return NULL; +} + static void check_query_changes(IRC_SERVER_REC *server, const char *nick, const char *address, const char *target) { |