Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.h

    r951aefd r99fe030  
    2626#ifndef _MSN_H
    2727#define _MSN_H
    28 
    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
    4028
    4129/* This should be MSN Messenger 7.0.0813
     
    7765#define MSN_MESSAGE_HEADERS MSN_BASE_HEADERS \
    7866        "Messaging: 2.0\r\n" \
    79         "Message-Type: Text\r\n" \
     67        "Message-Type: %s\r\n" \
    8068        "Content-Length: %zd\r\n" \
    8169        "Content-Type: text/plain; charset=UTF-8\r\n" \
     
    10391        "</user>"
    10492
    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 
    11693#define PROFILE_URL "http://members.msn.com/"
    11794
     
    242219void msn_auth_got_contact_list(struct im_connection *ic);
    243220int msn_ns_finish_login(struct im_connection *ic);
    244 int msn_ns_sendmessage(struct im_connection *ic, struct bee_user *bu, const char *text);
     221int msn_ns_send_typing(struct im_connection *ic, struct bee_user *bu);
     222int msn_ns_send_message(struct im_connection *ic, struct bee_user *bu, const char *text);
    245223int msn_ns_command(struct msn_data *md, char **cmd, int num_parts);
    246224int 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.