mirror of https://github.com/bqv/weechat-xmpp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
911 B
C
44 lines
911 B
C
7 years ago
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <time.h>
|
||
|
|
||
|
#include "weechat-plugin.h"
|
||
|
#include "slack.h"
|
||
|
#include "slack-config.h"
|
||
|
#include "slack-command.h"
|
||
|
|
||
|
|
||
|
WEECHAT_PLUGIN_NAME(SLACK_PLUGIN_NAME);
|
||
|
WEECHAT_PLUGIN_DESCRIPTION(N_("Slack (slack.com) protocol"));
|
||
|
WEECHAT_PLUGIN_AUTHOR("Tony Olagbaiye <frony0@gmail.com>");
|
||
|
WEECHAT_PLUGIN_VERSION(SLACK_PLUGIN_VERSION);
|
||
|
WEECHAT_PLUGIN_LICENSE("MPL2");
|
||
|
WEECHAT_PLUGIN_PRIORITY(6000);
|
||
|
|
||
|
struct t_weechat_plugin *weechat_slack_plugin = NULL;
|
||
|
|
||
|
int weechat_plugin_init(struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||
|
{
|
||
|
(void) argc;
|
||
|
(void) argv;
|
||
|
|
||
|
weechat_plugin = plugin;
|
||
|
|
||
|
if (!slack_config_init())
|
||
|
return WEECHAT_RC_ERROR;
|
||
|
|
||
|
slack_config_read();
|
||
|
|
||
|
slack_command_init();
|
||
|
|
||
|
return WEECHAT_RC_OK;
|
||
|
}
|
||
|
|
||
|
int weechat_plugin_end(struct t_weechat_plugin *plugin)
|
||
|
{
|
||
|
/* make C compiler happy */
|
||
|
(void) plugin;
|
||
|
|
||
|
return WEECHAT_RC_OK;
|
||
|
}
|