From 3b5b10791a2be7354a4c30e58887ea7f26fc762e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 18 May 2002 03:07:57 +0000 Subject: banlist_find() is now public. "event 367" (banlist) shows now ban number in our list, if it's known. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2807 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/mode-lists.c | 2 +- src/irc/core/mode-lists.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/irc/core') diff --git a/src/irc/core/mode-lists.c b/src/irc/core/mode-lists.c index d7fef183..9d85e133 100644 --- a/src/irc/core/mode-lists.c +++ b/src/irc/core/mode-lists.c @@ -44,7 +44,7 @@ void banlist_free(GSList *banlist) ban_free(&banlist, banlist->data); } -static BAN_REC *banlist_find(GSList *list, const char *ban) +BAN_REC *banlist_find(GSList *list, const char *ban) { GSList *tmp; diff --git a/src/irc/core/mode-lists.h b/src/irc/core/mode-lists.h index 324b7752..105e1245 100644 --- a/src/irc/core/mode-lists.h +++ b/src/irc/core/mode-lists.h @@ -7,6 +7,8 @@ typedef struct { time_t time; } BAN_REC; +BAN_REC *banlist_find(GSList *list, const char *ban); + BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban, const char *nick, time_t time); void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban); -- cgit v1.2.3