mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
52 lines
2.4 KiB
C
52 lines
2.4 KiB
C
/*
|
|
* Copyright (C) 2022 Sébastien Helleu <flashcode@flashtux.org>
|
|
*
|
|
* This file is part of WeeChat, the extensible chat client.
|
|
*
|
|
* WeeChat is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* WeeChat is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef WEECHAT_PLUGIN_IRC_JOIN_H
|
|
#define WEECHAT_PLUGIN_IRC_JOIN_H
|
|
|
|
struct t_irc_server;
|
|
|
|
struct t_irc_join_channel
|
|
{
|
|
char *name; /* channel name */
|
|
char *key; /* channel key */
|
|
};
|
|
|
|
extern struct t_arraylist *irc_join_split (struct t_irc_server *server,
|
|
const char *join);
|
|
extern char *irc_join_build_string (struct t_arraylist *arraylist);
|
|
extern char *irc_join_add_channel (struct t_irc_server *server,
|
|
const char *join, const char *channel_name,
|
|
const char *key);
|
|
extern char *irc_join_add_channels (struct t_irc_server *server,
|
|
const char *join, const char *join2);
|
|
extern void irc_join_add_channel_to_autojoin (struct t_irc_server *server,
|
|
const char *channel_name,
|
|
const char *key);
|
|
extern void irc_join_add_channels_to_autojoin (struct t_irc_server *server,
|
|
const char *join);
|
|
extern char *irc_join_remove_channel (struct t_irc_server *server,
|
|
const char *join,
|
|
const char *channel_name);
|
|
extern void irc_join_remove_channel_from_autojoin (struct t_irc_server *server,
|
|
const char *channel_name);
|
|
extern void irc_join_save_channels_to_autojoin (struct t_irc_server *server);
|
|
|
|
#endif /* WEECHAT_PLUGIN_IRC_JOIN_H */
|