protocols/ircv3/purpleircv3commands.h

Tue, 08 Apr 2025 23:20:52 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 08 Apr 2025 23:20:52 -0500
changeset 43225
f0ffa584435b
parent 43126
5b5a883528e0
child 43290
01edcfbfebaa
permissions
-rw-r--r--

IRCv3: Fix privmsg going to the status window before registration is complete

This got broken when some of this code was reorganized.

Testing Done:
Ran `ninja scan-build` and verified the error was gone. Also connected to libera and verified that I didn't get a conversation with the server's name anymore.

Reviewed at https://reviews.imfreedom.org/r/3963/

/*
 * Purple - Internet Messaging Library
 * Copyright (C) Pidgin Developers <devel@pidgin.im>
 *
 * Purple is the legal property of its developers, whose names are too numerous
 * to list here.  Please refer to the COPYRIGHT file distributed with this
 * source distribution.
 *
 * This library 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 2 of the License, or
 * (at your option) any later version.
 *
 * This library 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 this library; if not, see <https://www.gnu.org/licenses/>.
 */

#if !defined(PURPLE_IRCV3_GLOBAL_HEADER_INSIDE) && \
    !defined(PURPLE_IRCV3_COMPILATION)
# error "only <libpurple/protocols/ircv3.h> may be included directly"
#endif

#ifndef PURPLE_IRCV3_COMMANDS_H
#define PURPLE_IRCV3_COMMANDS_H

#include <glib.h>

#include <purple.h>

G_BEGIN_DECLS

G_GNUC_INTERNAL gboolean purple_ircv3_command_query_cb(PurpleCommand *command, PurpleConversation *conversation, GStrv params, gpointer data);
G_GNUC_INTERNAL gboolean purple_ircv3_command_quote_cb(PurpleCommand *command, PurpleConversation *conversation, GStrv params, gpointer data);

G_END_DECLS

#endif /* PURPLE_IRCV3_COMMANDS_H */

mercurial