Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.h

    r99fe030 r951aefd  
    2727#define _MSN_H
    2828
     29/* Some hackish magicstrings to make special-purpose messages/switchboards.
     30 */
     31#define TYPING_NOTIFICATION_MESSAGE "\r\r\rBEWARE, ME R TYPINK MESSAGE!!!!\r\r\r"
     32#define NUDGE_MESSAGE "\r\r\rSHAKE THAT THING\r\r\r"
     33#define GROUPCHAT_SWITCHBOARD_MESSAGE "\r\r\rME WANT TALK TO MANY PEOPLE\r\r\r"
     34
     35#ifdef DEBUG_MSN
     36#define debug(text ...) imcb_log(ic, text);
     37#else
     38#define debug(text ...)
     39#endif
     40
    2941/* This should be MSN Messenger 7.0.0813
    3042#define MSNP11_PROD_KEY "CFHUR$52U_{VIX5T"
     
    6577#define MSN_MESSAGE_HEADERS MSN_BASE_HEADERS \
    6678        "Messaging: 2.0\r\n" \
    67         "Message-Type: %s\r\n" \
     79        "Message-Type: Text\r\n" \
    6880        "Content-Length: %zd\r\n" \
    6981        "Content-Type: text/plain; charset=UTF-8\r\n" \
     
    91103        "</user>"
    92104
     105#define MSN_TYPING_HEADERS "MIME-Version: 1.0\r\n" \
     106        "Content-Type: text/x-msmsgscontrol\r\n" \
     107        "TypingUser: %s\r\n" \
     108        "\r\n\r\n"
     109
     110#define MSN_NUDGE_HEADERS "MIME-Version: 1.0\r\n" \
     111        "Content-Type: text/x-msnmsgr-datacast\r\n" \
     112        "\r\n" \
     113        "ID: 1\r\n" \
     114        "\r\n"
     115
    93116#define PROFILE_URL "http://members.msn.com/"
    94117
     
    219242void msn_auth_got_contact_list(struct im_connection *ic);
    220243int msn_ns_finish_login(struct im_connection *ic);
    221 int msn_ns_send_typing(struct im_connection *ic, struct bee_user *bu);
    222 int msn_ns_send_message(struct im_connection *ic, struct bee_user *bu, const char *text);
     244int msn_ns_sendmessage(struct im_connection *ic, struct bee_user *bu, const char *text);
    223245int msn_ns_command(struct msn_data *md, char **cmd, int num_parts);
    224246int msn_ns_message(struct msn_data *md, char *msg, int msglen, char **cmd, int num_parts);
Note: See TracChangeset for help on using the changeset viewer.