You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.5 KiB
48 lines
1.5 KiB
/* |
|
* xmpp.c - incredibly cursed XMPP plugin |
|
* |
|
* Copyright (C) 2021 eta <git@eta.st> |
|
* |
|
* 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/>. |
|
*/ |
|
|
|
#include <stdlib.h> |
|
#include <stdio.h> |
|
#include <string.h> |
|
#include <time.h> |
|
|
|
#include "../weechat-plugin.h" |
|
#include "xmpp.h" |
|
|
|
struct t_weechat_plugin *weechat_xmpp_plugin = NULL; |
|
|
|
WEECHAT_PLUGIN_NAME(XMPP_PLUGIN_NAME); |
|
WEECHAT_PLUGIN_DESCRIPTION(N_("Cursed XMPP plugin")); |
|
WEECHAT_PLUGIN_AUTHOR("eta <git@eta.st>"); |
|
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); |
|
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); |
|
WEECHAT_PLUGIN_PRIORITY(8000); |
|
|
|
int weechat_plugin_init(struct t_weechat_plugin *plugin, int argc, char **argv) { |
|
weechat_plugin = plugin; |
|
weechat_printf(NULL, "xmpp: init"); |
|
return WEECHAT_RC_OK; |
|
} |
|
|
|
int weechat_plugin_end(struct t_weechat_plugin *plugin) { |
|
weechat_printf(NULL, "xmpp: end"); |
|
return WEECHAT_RC_OK; |
|
}
|
|
|