[b7d3cc34] | 1 | /********************************************************************\ |
---|
| 2 | * BitlBee -- An IRC to other IM-networks gateway * |
---|
| 3 | * * |
---|
[4e4af1b] | 4 | * Copyright 2002-2010 Wilmer van der Gaast and others * |
---|
[b7d3cc34] | 5 | \********************************************************************/ |
---|
| 6 | |
---|
| 7 | /* MSN module - Main file; functions to be called from BitlBee */ |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | This program is free software; you can redistribute it and/or modify |
---|
| 11 | it under the terms of the GNU General Public License as published by |
---|
| 12 | the Free Software Foundation; either version 2 of the License, or |
---|
| 13 | (at your option) any later version. |
---|
| 14 | |
---|
| 15 | This program is distributed in the hope that it will be useful, |
---|
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 18 | GNU General Public License for more details. |
---|
| 19 | |
---|
| 20 | You should have received a copy of the GNU General Public License with |
---|
| 21 | the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL; |
---|
| 22 | if not, write to the Free Software Foundation, Inc., 59 Temple Place, |
---|
| 23 | Suite 330, Boston, MA 02111-1307 USA |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | #include "nogaim.h" |
---|
[4452e69] | 27 | #include "soap.h" |
---|
[b7d3cc34] | 28 | #include "msn.h" |
---|
| 29 | |
---|
[c6ca3ee] | 30 | int msn_chat_id; |
---|
| 31 | GSList *msn_connections; |
---|
| 32 | GSList *msn_switchboards; |
---|
| 33 | |
---|
[e3413cc] | 34 | static char *set_eval_display_name( set_t *set, char *value ); |
---|
[911f2eb] | 35 | |
---|
[0da65d5] | 36 | static void msn_init( account_t *acc ) |
---|
[911f2eb] | 37 | { |
---|
[4452e69] | 38 | set_t *s; |
---|
| 39 | |
---|
| 40 | s = set_add( &acc->set, "display_name", NULL, set_eval_display_name, acc ); |
---|
| 41 | s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY; |
---|
| 42 | |
---|
[e3413cc] | 43 | set_add( &acc->set, "mail_notifications", "false", set_eval_bool, acc ); |
---|
[efbc154] | 44 | set_add( &acc->set, "switchboard_keepalives", "false", set_eval_bool, acc ); |
---|
[12767e3] | 45 | |
---|
| 46 | acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE; |
---|
[911f2eb] | 47 | } |
---|
| 48 | |
---|
[0a3c243] | 49 | static void msn_login( account_t *acc ) |
---|
[b7d3cc34] | 50 | { |
---|
[84b045d] | 51 | struct im_connection *ic = imcb_new( acc ); |
---|
[b7d3cc34] | 52 | struct msn_data *md = g_new0( struct msn_data, 1 ); |
---|
| 53 | |
---|
[0da65d5] | 54 | ic->proto_data = md; |
---|
[b7d3cc34] | 55 | md->fd = -1; |
---|
| 56 | |
---|
[0a3c243] | 57 | if( strchr( acc->user, '@' ) == NULL ) |
---|
[b7d3cc34] | 58 | { |
---|
[84b045d] | 59 | imcb_error( ic, "Invalid account name" ); |
---|
[c2fb3809] | 60 | imc_logout( ic, FALSE ); |
---|
[b7d3cc34] | 61 | return; |
---|
| 62 | } |
---|
| 63 | |
---|
[84b045d] | 64 | imcb_log( ic, "Connecting" ); |
---|
[2a29eac] | 65 | |
---|
[0da65d5] | 66 | md->fd = proxy_connect( "messenger.hotmail.com", 1863, msn_ns_connected, ic ); |
---|
[b7d3cc34] | 67 | if( md->fd < 0 ) |
---|
| 68 | { |
---|
[84b045d] | 69 | imcb_error( ic, "Could not connect to server" ); |
---|
[c2fb3809] | 70 | imc_logout( ic, TRUE ); |
---|
[2a29eac] | 71 | return; |
---|
[b7d3cc34] | 72 | } |
---|
[2a29eac] | 73 | |
---|
[0da65d5] | 74 | md->ic = ic; |
---|
[2a29eac] | 75 | md->away_state = msn_away_state_list; |
---|
[ca7de3a] | 76 | md->domaintree = g_tree_new( msn_domaintree_cmp ); |
---|
[2a29eac] | 77 | |
---|
[0da65d5] | 78 | msn_connections = g_slist_append( msn_connections, ic ); |
---|
[b7d3cc34] | 79 | } |
---|
| 80 | |
---|
[0da65d5] | 81 | static void msn_logout( struct im_connection *ic ) |
---|
[b7d3cc34] | 82 | { |
---|
[0da65d5] | 83 | struct msn_data *md = ic->proto_data; |
---|
[b7d3cc34] | 84 | GSList *l; |
---|
| 85 | |
---|
[5a5c926] | 86 | if( md ) |
---|
[b7d3cc34] | 87 | { |
---|
[17a6ee9] | 88 | /** Disabling MSN ft support for now. |
---|
[a2b99ec] | 89 | while( md->filetransfers ) { |
---|
[1c3008a] | 90 | imcb_file_canceled( md->filetransfers->data, "Closing connection" ); |
---|
[a2b99ec] | 91 | } |
---|
[17a6ee9] | 92 | */ |
---|
[a2b99ec] | 93 | |
---|
[5a5c926] | 94 | if( md->fd >= 0 ) |
---|
| 95 | closesocket( md->fd ); |
---|
[b7d3cc34] | 96 | |
---|
[5a5c926] | 97 | if( md->handler ) |
---|
[b7d3cc34] | 98 | { |
---|
[5a5c926] | 99 | if( md->handler->rxq ) g_free( md->handler->rxq ); |
---|
| 100 | if( md->handler->cmd_text ) g_free( md->handler->cmd_text ); |
---|
| 101 | g_free( md->handler ); |
---|
| 102 | } |
---|
| 103 | |
---|
| 104 | while( md->switchboards ) |
---|
| 105 | msn_sb_destroy( md->switchboards->data ); |
---|
[1053836] | 106 | |
---|
[46dca11] | 107 | msn_msgq_purge( ic, &md->msgq ); |
---|
[5a5c926] | 108 | |
---|
[bf25fa3] | 109 | while( md->groupcount > 0 ) |
---|
| 110 | g_free( md->grouplist[--md->groupcount] ); |
---|
[59f5c42a] | 111 | g_free( md->grouplist ); |
---|
[523fb23] | 112 | g_free( md->tokens[0] ); |
---|
| 113 | g_free( md->tokens[1] ); |
---|
[91d6e91] | 114 | g_free( md->tokens[2] ); |
---|
[ffb6dea] | 115 | g_free( md->lock_key ); |
---|
[59f5c42a] | 116 | |
---|
[ca7de3a] | 117 | g_tree_destroy( md->domaintree ); |
---|
| 118 | md->domaintree = NULL; |
---|
| 119 | |
---|
[70ac477] | 120 | while( md->grpq ) |
---|
| 121 | { |
---|
| 122 | struct msn_groupadd *ga = md->grpq->data; |
---|
| 123 | g_free( ga->group ); |
---|
| 124 | g_free( ga->who ); |
---|
| 125 | g_free( ga ); |
---|
| 126 | md->grpq = g_slist_remove( md->grpq, ga ); |
---|
| 127 | } |
---|
| 128 | |
---|
[5a5c926] | 129 | g_free( md ); |
---|
[b7d3cc34] | 130 | } |
---|
| 131 | |
---|
[0da65d5] | 132 | for( l = ic->permit; l; l = l->next ) |
---|
[b7d3cc34] | 133 | g_free( l->data ); |
---|
[0da65d5] | 134 | g_slist_free( ic->permit ); |
---|
[b7d3cc34] | 135 | |
---|
[0da65d5] | 136 | for( l = ic->deny; l; l = l->next ) |
---|
[b7d3cc34] | 137 | g_free( l->data ); |
---|
[0da65d5] | 138 | g_slist_free( ic->deny ); |
---|
[b7d3cc34] | 139 | |
---|
[0da65d5] | 140 | msn_connections = g_slist_remove( msn_connections, ic ); |
---|
[b7d3cc34] | 141 | } |
---|
| 142 | |
---|
[f6c963b] | 143 | static int msn_buddy_msg( struct im_connection *ic, char *who, char *message, int away ) |
---|
[b7d3cc34] | 144 | { |
---|
| 145 | struct msn_switchboard *sb; |
---|
| 146 | |
---|
[70ac477] | 147 | #ifdef DEBUG |
---|
| 148 | if( strcmp( who, "raw" ) == 0 ) |
---|
| 149 | { |
---|
| 150 | msn_write( ic, message, strlen( message ) ); |
---|
| 151 | msn_write( ic, "\r\n", 2 ); |
---|
| 152 | } |
---|
| 153 | else |
---|
| 154 | #endif |
---|
[0da65d5] | 155 | if( ( sb = msn_sb_by_handle( ic, who ) ) ) |
---|
[b7d3cc34] | 156 | { |
---|
| 157 | return( msn_sb_sendmessage( sb, message ) ); |
---|
| 158 | } |
---|
| 159 | else |
---|
| 160 | { |
---|
| 161 | struct msn_message *m; |
---|
| 162 | |
---|
| 163 | /* Create a message. We have to arrange a usable switchboard, and send the message later. */ |
---|
| 164 | m = g_new0( struct msn_message, 1 ); |
---|
| 165 | m->who = g_strdup( who ); |
---|
| 166 | m->text = g_strdup( message ); |
---|
| 167 | |
---|
[a830512] | 168 | return msn_sb_write_msg( ic, m ); |
---|
[b7d3cc34] | 169 | } |
---|
| 170 | |
---|
| 171 | return( 0 ); |
---|
| 172 | } |
---|
| 173 | |
---|
[0da65d5] | 174 | static GList *msn_away_states( struct im_connection *ic ) |
---|
[b7d3cc34] | 175 | { |
---|
[5e202b0] | 176 | static GList *l = NULL; |
---|
[b7d3cc34] | 177 | int i; |
---|
| 178 | |
---|
[5e202b0] | 179 | if( l == NULL ) |
---|
[b051d39] | 180 | for( i = 0; *msn_away_state_list[i].code; i ++ ) |
---|
| 181 | if( *msn_away_state_list[i].name ) |
---|
| 182 | l = g_list_append( l, (void*) msn_away_state_list[i].name ); |
---|
[b7d3cc34] | 183 | |
---|
[5e202b0] | 184 | return l; |
---|
[b7d3cc34] | 185 | } |
---|
| 186 | |
---|
[0da65d5] | 187 | static void msn_set_away( struct im_connection *ic, char *state, char *message ) |
---|
[b7d3cc34] | 188 | { |
---|
| 189 | char buf[1024]; |
---|
[12767e3] | 190 | char *uux; |
---|
[0da65d5] | 191 | struct msn_data *md = ic->proto_data; |
---|
[b7d3cc34] | 192 | |
---|
[daae10f] | 193 | if( state == NULL ) |
---|
[b051d39] | 194 | md->away_state = msn_away_state_list; |
---|
[daae10f] | 195 | else if( ( md->away_state = msn_away_state_by_name( state ) ) == NULL ) |
---|
| 196 | md->away_state = msn_away_state_list + 1; |
---|
[b7d3cc34] | 197 | |
---|
[b051d39] | 198 | g_snprintf( buf, sizeof( buf ), "CHG %d %s\r\n", ++md->trId, md->away_state->code ); |
---|
[12767e3] | 199 | if( !msn_write( ic, buf, strlen( buf ) ) ) |
---|
| 200 | return; |
---|
| 201 | |
---|
| 202 | uux = g_markup_printf_escaped( "<Data><PSM>%s</PSM><CurrentMedia></CurrentMedia>" |
---|
| 203 | "</Data>", message ? message : "" ); |
---|
| 204 | g_snprintf( buf, sizeof( buf ), "UUX %d %zd\r\n%s", ++md->trId, strlen( uux ), uux ); |
---|
| 205 | if( !msn_write( ic, buf, strlen( buf ) ) ) |
---|
| 206 | return; |
---|
[b7d3cc34] | 207 | } |
---|
| 208 | |
---|
[0da65d5] | 209 | static void msn_get_info(struct im_connection *ic, char *who) |
---|
[b7d3cc34] | 210 | { |
---|
| 211 | /* Just make an URL and let the user fetch the info */ |
---|
[84b045d] | 212 | imcb_log( ic, "%s\n%s: %s%s", _("User Info"), _("For now, fetch yourself"), PROFILE_URL, who ); |
---|
[b7d3cc34] | 213 | } |
---|
| 214 | |
---|
[0da65d5] | 215 | static void msn_add_buddy( struct im_connection *ic, char *who, char *group ) |
---|
[b7d3cc34] | 216 | { |
---|
[8b01217] | 217 | struct bee_user *bu = bee_user_by_handle( ic->bee, ic, who ); |
---|
| 218 | |
---|
[193dc74] | 219 | msn_buddy_list_add( ic, MSN_BUDDY_FL, who, who, group ); |
---|
[8b01217] | 220 | if( bu && bu->group ) |
---|
[193dc74] | 221 | msn_buddy_list_remove( ic, MSN_BUDDY_FL, who, bu->group->name ); |
---|
[b7d3cc34] | 222 | } |
---|
| 223 | |
---|
[0da65d5] | 224 | static void msn_remove_buddy( struct im_connection *ic, char *who, char *group ) |
---|
[b7d3cc34] | 225 | { |
---|
[193dc74] | 226 | msn_buddy_list_remove( ic, MSN_BUDDY_FL, who, NULL ); |
---|
[b7d3cc34] | 227 | } |
---|
| 228 | |
---|
[f6c963b] | 229 | static void msn_chat_msg( struct groupchat *c, char *message, int flags ) |
---|
[b7d3cc34] | 230 | { |
---|
[fa29d093] | 231 | struct msn_switchboard *sb = msn_sb_by_chat( c ); |
---|
[b7d3cc34] | 232 | |
---|
| 233 | if( sb ) |
---|
[0da65d5] | 234 | msn_sb_sendmessage( sb, message ); |
---|
| 235 | /* FIXME: Error handling (although this can't happen unless something's |
---|
| 236 | already severely broken) disappeared here! */ |
---|
[b7d3cc34] | 237 | } |
---|
| 238 | |
---|
[c058ff9] | 239 | static void msn_chat_invite( struct groupchat *c, char *who, char *message ) |
---|
[b7d3cc34] | 240 | { |
---|
[fa29d093] | 241 | struct msn_switchboard *sb = msn_sb_by_chat( c ); |
---|
[b7d3cc34] | 242 | char buf[1024]; |
---|
| 243 | |
---|
| 244 | if( sb ) |
---|
| 245 | { |
---|
| 246 | g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who ); |
---|
| 247 | msn_sb_write( sb, buf, strlen( buf ) ); |
---|
| 248 | } |
---|
| 249 | } |
---|
| 250 | |
---|
[0da65d5] | 251 | static void msn_chat_leave( struct groupchat *c ) |
---|
[b7d3cc34] | 252 | { |
---|
[fa29d093] | 253 | struct msn_switchboard *sb = msn_sb_by_chat( c ); |
---|
[b7d3cc34] | 254 | |
---|
| 255 | if( sb ) |
---|
| 256 | msn_sb_write( sb, "OUT\r\n", 5 ); |
---|
| 257 | } |
---|
| 258 | |
---|
[0da65d5] | 259 | static struct groupchat *msn_chat_with( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 260 | { |
---|
| 261 | struct msn_switchboard *sb; |
---|
[36577aa] | 262 | struct groupchat *c = imcb_chat_new( ic, who ); |
---|
[b7d3cc34] | 263 | |
---|
[0da65d5] | 264 | if( ( sb = msn_sb_by_handle( ic, who ) ) ) |
---|
[b7d3cc34] | 265 | { |
---|
| 266 | debug( "Converting existing switchboard to %s to a groupchat", who ); |
---|
[fa29d093] | 267 | return msn_sb_to_chat( sb ); |
---|
[b7d3cc34] | 268 | } |
---|
| 269 | else |
---|
| 270 | { |
---|
| 271 | struct msn_message *m; |
---|
| 272 | |
---|
| 273 | /* Create a magic message. This is quite hackish, but who cares? :-P */ |
---|
| 274 | m = g_new0( struct msn_message, 1 ); |
---|
| 275 | m->who = g_strdup( who ); |
---|
| 276 | m->text = g_strdup( GROUPCHAT_SWITCHBOARD_MESSAGE ); |
---|
| 277 | |
---|
[a830512] | 278 | msn_sb_write_msg( ic, m ); |
---|
| 279 | |
---|
[36577aa] | 280 | return c; |
---|
[b7d3cc34] | 281 | } |
---|
| 282 | } |
---|
| 283 | |
---|
[0da65d5] | 284 | static void msn_keepalive( struct im_connection *ic ) |
---|
[b7d3cc34] | 285 | { |
---|
[0da65d5] | 286 | msn_write( ic, "PNG\r\n", strlen( "PNG\r\n" ) ); |
---|
[b7d3cc34] | 287 | } |
---|
| 288 | |
---|
[0da65d5] | 289 | static void msn_add_permit( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 290 | { |
---|
[193dc74] | 291 | msn_buddy_list_add( ic, MSN_BUDDY_AL, who, who, NULL ); |
---|
[b7d3cc34] | 292 | } |
---|
| 293 | |
---|
[0da65d5] | 294 | static void msn_rem_permit( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 295 | { |
---|
[193dc74] | 296 | msn_buddy_list_remove( ic, MSN_BUDDY_AL, who, NULL ); |
---|
[b7d3cc34] | 297 | } |
---|
| 298 | |
---|
[0da65d5] | 299 | static void msn_add_deny( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 300 | { |
---|
| 301 | struct msn_switchboard *sb; |
---|
| 302 | |
---|
[193dc74] | 303 | msn_buddy_list_add( ic, MSN_BUDDY_BL, who, who, NULL ); |
---|
[b7d3cc34] | 304 | |
---|
| 305 | /* If there's still a conversation with this person, close it. */ |
---|
[0da65d5] | 306 | if( ( sb = msn_sb_by_handle( ic, who ) ) ) |
---|
[b7d3cc34] | 307 | { |
---|
| 308 | msn_sb_destroy( sb ); |
---|
| 309 | } |
---|
| 310 | } |
---|
| 311 | |
---|
[0da65d5] | 312 | static void msn_rem_deny( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 313 | { |
---|
[193dc74] | 314 | msn_buddy_list_remove( ic, MSN_BUDDY_BL, who, NULL ); |
---|
[b7d3cc34] | 315 | } |
---|
| 316 | |
---|
[0da65d5] | 317 | static int msn_send_typing( struct im_connection *ic, char *who, int typing ) |
---|
[b7d3cc34] | 318 | { |
---|
[4255320] | 319 | struct bee_user *bu = bee_user_by_handle( ic->bee, ic, who ); |
---|
| 320 | |
---|
| 321 | if( !( bu->flags & BEE_USER_ONLINE ) ) |
---|
| 322 | return 0; |
---|
| 323 | else if( typing & OPT_TYPING ) |
---|
[f6c963b] | 324 | return( msn_buddy_msg( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) ); |
---|
[b7d3cc34] | 325 | else |
---|
[4255320] | 326 | return 1; |
---|
[b7d3cc34] | 327 | } |
---|
| 328 | |
---|
[e3413cc] | 329 | static char *set_eval_display_name( set_t *set, char *value ) |
---|
[911f2eb] | 330 | { |
---|
| 331 | account_t *acc = set->data; |
---|
[0da65d5] | 332 | struct im_connection *ic = acc->ic; |
---|
[4452e69] | 333 | struct msn_data *md = ic->proto_data; |
---|
| 334 | char buf[512]; |
---|
| 335 | char *fn; |
---|
[911f2eb] | 336 | |
---|
| 337 | if( strlen( value ) > 129 ) |
---|
| 338 | { |
---|
[84b045d] | 339 | imcb_log( ic, "Maximum name length exceeded" ); |
---|
[911f2eb] | 340 | return NULL; |
---|
| 341 | } |
---|
| 342 | |
---|
[4452e69] | 343 | msn_soap_addressbook_set_display_name( ic, value ); |
---|
| 344 | |
---|
| 345 | fn = g_malloc( strlen( value ) * 3 + 1 ); |
---|
| 346 | strcpy( fn, value ); |
---|
| 347 | http_encode( fn ); |
---|
| 348 | g_snprintf( buf, sizeof( buf ), "PRP %d MFN %s\r\n", |
---|
| 349 | ++md->trId, fn ); |
---|
| 350 | g_free( fn ); |
---|
| 351 | |
---|
| 352 | /* Note: We don't actually know if the server accepted the new name, |
---|
| 353 | and won't give proper feedback yet if it doesn't. */ |
---|
| 354 | return msn_write( ic, buf, strlen( buf ) ) ? value : NULL; |
---|
[911f2eb] | 355 | } |
---|
| 356 | |
---|
[7f34ce2] | 357 | static void msn_buddy_data_add( bee_user_t *bu ) |
---|
| 358 | { |
---|
[ca7de3a] | 359 | struct msn_data *md = bu->ic->proto_data; |
---|
[7f34ce2] | 360 | bu->data = g_new0( struct msn_buddy_data, 1 ); |
---|
[ca7de3a] | 361 | g_tree_insert( md->domaintree, bu->handle, bu ); |
---|
[7f34ce2] | 362 | } |
---|
| 363 | |
---|
| 364 | static void msn_buddy_data_free( bee_user_t *bu ) |
---|
| 365 | { |
---|
[ca7de3a] | 366 | struct msn_data *md = bu->ic->proto_data; |
---|
| 367 | g_tree_remove( md->domaintree, bu->handle ); |
---|
[7f34ce2] | 368 | g_free( bu->data ); |
---|
| 369 | } |
---|
| 370 | |
---|
[0da65d5] | 371 | void msn_initmodule() |
---|
[b7d3cc34] | 372 | { |
---|
[7b23afd] | 373 | struct prpl *ret = g_new0(struct prpl, 1); |
---|
[911f2eb] | 374 | |
---|
[7b23afd] | 375 | ret->name = "msn"; |
---|
[b7d3cc34] | 376 | ret->login = msn_login; |
---|
[0da65d5] | 377 | ret->init = msn_init; |
---|
| 378 | ret->logout = msn_logout; |
---|
[f6c963b] | 379 | ret->buddy_msg = msn_buddy_msg; |
---|
[b7d3cc34] | 380 | ret->away_states = msn_away_states; |
---|
| 381 | ret->set_away = msn_set_away; |
---|
| 382 | ret->get_info = msn_get_info; |
---|
| 383 | ret->add_buddy = msn_add_buddy; |
---|
| 384 | ret->remove_buddy = msn_remove_buddy; |
---|
[f6c963b] | 385 | ret->chat_msg = msn_chat_msg; |
---|
[b7d3cc34] | 386 | ret->chat_invite = msn_chat_invite; |
---|
| 387 | ret->chat_leave = msn_chat_leave; |
---|
[0da65d5] | 388 | ret->chat_with = msn_chat_with; |
---|
[b7d3cc34] | 389 | ret->keepalive = msn_keepalive; |
---|
| 390 | ret->add_permit = msn_add_permit; |
---|
| 391 | ret->rem_permit = msn_rem_permit; |
---|
| 392 | ret->add_deny = msn_add_deny; |
---|
| 393 | ret->rem_deny = msn_rem_deny; |
---|
| 394 | ret->send_typing = msn_send_typing; |
---|
[5b52a48] | 395 | ret->handle_cmp = g_strcasecmp; |
---|
[7f34ce2] | 396 | ret->buddy_data_add = msn_buddy_data_add; |
---|
| 397 | ret->buddy_data_free = msn_buddy_data_free; |
---|
| 398 | |
---|
[17a6ee9] | 399 | //ret->transfer_request = msn_ftp_transfer_request; |
---|
[b7d3cc34] | 400 | |
---|
[7b23afd] | 401 | register_protocol(ret); |
---|
[b7d3cc34] | 402 | } |
---|