void vcard_init(void) { disco_add_feature(XMLNS_VCARD); command_bind_xmpp("vcard", NULL, (SIGNAL_FUNC)cmd_vcard); command_bind_xmpp("whois", NULL, (SIGNAL_FUNC)cmd_vcard); signal_add("xmpp recv iq", sig_recv_iq); }
void version_init(void) { disco_add_feature(XMLNS_VERSION); settings_add_bool("xmpp", "xmpp_send_version", TRUE); command_bind_xmpp("ver", NULL, (SIGNAL_FUNC)cmd_ver); signal_add("xmpp recv iq", sig_recv_iq); }
void xmpp_commands_init(void) { command_set_options("connect", "+xmppnet"); command_set_options("server add", "-xmppnet"); command_bind("xmppconnect", NULL, (SIGNAL_FUNC)cmd_xmppconnect); command_set_options("xmppconnect", "ssl -network -host @port"); command_bind("xmppserver", NULL, (SIGNAL_FUNC)cmd_xmppserver); command_bind_xmpp("away", NULL, (SIGNAL_FUNC)cmd_away); command_bind_xmpp("quote", NULL, (SIGNAL_FUNC)cmd_quote); command_bind_xmpp("roster", NULL, (SIGNAL_FUNC)cmd_roster); command_bind_xmpp("roster full", NULL, (SIGNAL_FUNC)cmd_roster_full); command_bind_xmpp("roster add", NULL, (SIGNAL_FUNC)cmd_roster_add); command_set_options("roster add", "nosub"); command_bind_xmpp("roster remove", NULL, (SIGNAL_FUNC)cmd_roster_remove); command_bind_xmpp("roster name", NULL, (SIGNAL_FUNC)cmd_roster_name); command_bind_xmpp("roster group", NULL, (SIGNAL_FUNC)cmd_roster_group); command_bind_xmpp("presence", NULL, (SIGNAL_FUNC)cmd_presence); command_bind_xmpp("presence accept", NULL, (SIGNAL_FUNC)cmd_presence_accept); command_bind_xmpp("presence deny", NULL, (SIGNAL_FUNC)cmd_presence_deny); command_bind_xmpp("presence subscribe", NULL, (SIGNAL_FUNC)cmd_presence_subscribe); command_bind_xmpp("presence unsubscribe", NULL, (SIGNAL_FUNC)cmd_presence_unsubscribe); command_bind_xmpp("me", NULL, (SIGNAL_FUNC)cmd_me); settings_add_str("xmpp", "xmpp_default_away_mode", "away"); }