[b7d3cc34] | 1 | /********************************************************************\ |
---|
| 2 | * BitlBee -- An IRC to other IM-networks gateway * |
---|
| 3 | * * |
---|
| 4 | * Copyright 2002-2004 Wilmer van der Gaast and others * |
---|
| 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" |
---|
| 27 | #include "msn.h" |
---|
| 28 | |
---|
[911f2eb] | 29 | static char *msn_set_display_name( set_t *set, char *value ); |
---|
| 30 | |
---|
[0da65d5] | 31 | static void msn_init( account_t *acc ) |
---|
[911f2eb] | 32 | { |
---|
| 33 | set_t *s; |
---|
| 34 | |
---|
| 35 | s = set_add( &acc->set, "display_name", NULL, msn_set_display_name, acc ); |
---|
| 36 | s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY; |
---|
| 37 | } |
---|
| 38 | |
---|
[0a3c243] | 39 | static void msn_login( account_t *acc ) |
---|
[b7d3cc34] | 40 | { |
---|
[84b045d] | 41 | struct im_connection *ic = imcb_new( acc ); |
---|
[b7d3cc34] | 42 | struct msn_data *md = g_new0( struct msn_data, 1 ); |
---|
| 43 | |
---|
[0da65d5] | 44 | ic->proto_data = md; |
---|
[b7d3cc34] | 45 | md->fd = -1; |
---|
| 46 | |
---|
[0a3c243] | 47 | if( strchr( acc->user, '@' ) == NULL ) |
---|
[b7d3cc34] | 48 | { |
---|
[84b045d] | 49 | imcb_error( ic, "Invalid account name" ); |
---|
[c2fb3809] | 50 | imc_logout( ic, FALSE ); |
---|
[b7d3cc34] | 51 | return; |
---|
| 52 | } |
---|
| 53 | |
---|
[84b045d] | 54 | imcb_log( ic, "Connecting" ); |
---|
[2a29eac] | 55 | |
---|
[0da65d5] | 56 | md->fd = proxy_connect( "messenger.hotmail.com", 1863, msn_ns_connected, ic ); |
---|
[b7d3cc34] | 57 | if( md->fd < 0 ) |
---|
| 58 | { |
---|
[84b045d] | 59 | imcb_error( ic, "Could not connect to server" ); |
---|
[c2fb3809] | 60 | imc_logout( ic, TRUE ); |
---|
[2a29eac] | 61 | return; |
---|
[b7d3cc34] | 62 | } |
---|
[2a29eac] | 63 | |
---|
[0da65d5] | 64 | md->ic = ic; |
---|
[2a29eac] | 65 | md->away_state = msn_away_state_list; |
---|
| 66 | |
---|
[0da65d5] | 67 | msn_connections = g_slist_append( msn_connections, ic ); |
---|
[b7d3cc34] | 68 | } |
---|
| 69 | |
---|
[0da65d5] | 70 | static void msn_logout( struct im_connection *ic ) |
---|
[b7d3cc34] | 71 | { |
---|
[0da65d5] | 72 | struct msn_data *md = ic->proto_data; |
---|
[b7d3cc34] | 73 | GSList *l; |
---|
| 74 | |
---|
[5a5c926] | 75 | if( md ) |
---|
[b7d3cc34] | 76 | { |
---|
[5a5c926] | 77 | if( md->fd >= 0 ) |
---|
| 78 | closesocket( md->fd ); |
---|
[b7d3cc34] | 79 | |
---|
[5a5c926] | 80 | if( md->handler ) |
---|
[b7d3cc34] | 81 | { |
---|
[5a5c926] | 82 | if( md->handler->rxq ) g_free( md->handler->rxq ); |
---|
| 83 | if( md->handler->cmd_text ) g_free( md->handler->cmd_text ); |
---|
| 84 | g_free( md->handler ); |
---|
| 85 | } |
---|
| 86 | |
---|
| 87 | while( md->switchboards ) |
---|
| 88 | msn_sb_destroy( md->switchboards->data ); |
---|
[1053836] | 89 | |
---|
[5a5c926] | 90 | if( md->msgq ) |
---|
| 91 | { |
---|
| 92 | struct msn_message *m; |
---|
| 93 | |
---|
| 94 | for( l = md->msgq; l; l = l->next ) |
---|
| 95 | { |
---|
| 96 | m = l->data; |
---|
| 97 | |
---|
[84b045d] | 98 | imcb_log( ic, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who ); |
---|
[5a5c926] | 99 | g_free( m->who ); |
---|
| 100 | g_free( m->text ); |
---|
| 101 | g_free( m ); |
---|
| 102 | } |
---|
| 103 | g_slist_free( md->msgq ); |
---|
[b7d3cc34] | 104 | } |
---|
[5a5c926] | 105 | |
---|
[bf25fa3] | 106 | while( md->groupcount > 0 ) |
---|
| 107 | g_free( md->grouplist[--md->groupcount] ); |
---|
[59f5c42a] | 108 | g_free( md->grouplist ); |
---|
| 109 | |
---|
[5a5c926] | 110 | g_free( md ); |
---|
[b7d3cc34] | 111 | } |
---|
| 112 | |
---|
[0da65d5] | 113 | for( l = ic->permit; l; l = l->next ) |
---|
[b7d3cc34] | 114 | g_free( l->data ); |
---|
[0da65d5] | 115 | g_slist_free( ic->permit ); |
---|
[b7d3cc34] | 116 | |
---|
[0da65d5] | 117 | for( l = ic->deny; l; l = l->next ) |
---|
[b7d3cc34] | 118 | g_free( l->data ); |
---|
[0da65d5] | 119 | g_slist_free( ic->deny ); |
---|
[b7d3cc34] | 120 | |
---|
[0da65d5] | 121 | msn_connections = g_slist_remove( msn_connections, ic ); |
---|
[b7d3cc34] | 122 | } |
---|
| 123 | |
---|
[0da65d5] | 124 | static int msn_send_im( struct im_connection *ic, char *who, char *message, int away ) |
---|
[b7d3cc34] | 125 | { |
---|
| 126 | struct msn_switchboard *sb; |
---|
[0da65d5] | 127 | struct msn_data *md = ic->proto_data; |
---|
[b7d3cc34] | 128 | |
---|
[0da65d5] | 129 | if( ( sb = msn_sb_by_handle( ic, who ) ) ) |
---|
[b7d3cc34] | 130 | { |
---|
| 131 | return( msn_sb_sendmessage( sb, message ) ); |
---|
| 132 | } |
---|
| 133 | else |
---|
| 134 | { |
---|
| 135 | struct msn_message *m; |
---|
| 136 | char buf[1024]; |
---|
| 137 | |
---|
| 138 | /* Create a message. We have to arrange a usable switchboard, and send the message later. */ |
---|
| 139 | m = g_new0( struct msn_message, 1 ); |
---|
| 140 | m->who = g_strdup( who ); |
---|
| 141 | m->text = g_strdup( message ); |
---|
| 142 | |
---|
| 143 | /* FIXME: *CHECK* the reliability of using spare sb's! */ |
---|
[0da65d5] | 144 | if( ( sb = msn_sb_spare( ic ) ) ) |
---|
[b7d3cc34] | 145 | { |
---|
| 146 | debug( "Trying to use a spare switchboard to message %s", who ); |
---|
| 147 | |
---|
| 148 | sb->who = g_strdup( who ); |
---|
| 149 | g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who ); |
---|
| 150 | if( msn_sb_write( sb, buf, strlen( buf ) ) ) |
---|
| 151 | { |
---|
| 152 | /* He/She should join the switchboard soon, let's queue the message. */ |
---|
| 153 | sb->msgq = g_slist_append( sb->msgq, m ); |
---|
| 154 | return( 1 ); |
---|
| 155 | } |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | debug( "Creating a new switchboard to message %s", who ); |
---|
| 159 | |
---|
| 160 | /* If we reach this line, there was no spare switchboard, so let's make one. */ |
---|
| 161 | g_snprintf( buf, sizeof( buf ), "XFR %d SB\r\n", ++md->trId ); |
---|
[0da65d5] | 162 | if( !msn_write( ic, buf, strlen( buf ) ) ) |
---|
[b7d3cc34] | 163 | { |
---|
| 164 | g_free( m->who ); |
---|
| 165 | g_free( m->text ); |
---|
| 166 | g_free( m ); |
---|
| 167 | |
---|
| 168 | return( 0 ); |
---|
| 169 | } |
---|
| 170 | |
---|
| 171 | /* And queue the message to md. We'll pick it up when the switchboard comes up. */ |
---|
| 172 | md->msgq = g_slist_append( md->msgq, m ); |
---|
| 173 | |
---|
| 174 | /* FIXME: If the switchboard creation fails, the message will not be sent. */ |
---|
| 175 | |
---|
| 176 | return( 1 ); |
---|
| 177 | } |
---|
| 178 | |
---|
| 179 | return( 0 ); |
---|
| 180 | } |
---|
| 181 | |
---|
[0da65d5] | 182 | static GList *msn_away_states( struct im_connection *ic ) |
---|
[b7d3cc34] | 183 | { |
---|
[5e202b0] | 184 | static GList *l = NULL; |
---|
[b7d3cc34] | 185 | int i; |
---|
| 186 | |
---|
[5e202b0] | 187 | if( l == NULL ) |
---|
| 188 | for( i = 0; msn_away_state_list[i].number > -1; i ++ ) |
---|
| 189 | l = g_list_append( l, (void*) msn_away_state_list[i].name ); |
---|
[b7d3cc34] | 190 | |
---|
[5e202b0] | 191 | return l; |
---|
[b7d3cc34] | 192 | } |
---|
| 193 | |
---|
[0da65d5] | 194 | static char *msn_get_status_string( struct im_connection *ic, int number ) |
---|
[b7d3cc34] | 195 | { |
---|
[08995b0] | 196 | const struct msn_away_state *st = msn_away_state_by_number( number ); |
---|
[b7d3cc34] | 197 | |
---|
| 198 | if( st ) |
---|
[08995b0] | 199 | return( (char*) st->name ); |
---|
[b7d3cc34] | 200 | else |
---|
| 201 | return( "" ); |
---|
| 202 | } |
---|
| 203 | |
---|
[0da65d5] | 204 | static void msn_set_away( struct im_connection *ic, char *state, char *message ) |
---|
[b7d3cc34] | 205 | { |
---|
| 206 | char buf[1024]; |
---|
[0da65d5] | 207 | struct msn_data *md = ic->proto_data; |
---|
[08995b0] | 208 | const struct msn_away_state *st; |
---|
[b7d3cc34] | 209 | |
---|
| 210 | if( strcmp( state, GAIM_AWAY_CUSTOM ) == 0 ) |
---|
| 211 | st = msn_away_state_by_name( "Away" ); |
---|
| 212 | else |
---|
| 213 | st = msn_away_state_by_name( state ); |
---|
| 214 | |
---|
| 215 | if( !st ) st = msn_away_state_list; |
---|
| 216 | md->away_state = st; |
---|
| 217 | |
---|
| 218 | g_snprintf( buf, sizeof( buf ), "CHG %d %s\r\n", ++md->trId, st->code ); |
---|
[0da65d5] | 219 | msn_write( ic, buf, strlen( buf ) ); |
---|
[b7d3cc34] | 220 | } |
---|
| 221 | |
---|
[0da65d5] | 222 | static void msn_set_my_name( struct im_connection *ic, char *info ) |
---|
[b7d3cc34] | 223 | { |
---|
[0da65d5] | 224 | msn_set_display_name( set_find( &ic->acc->set, "display_name" ), info ); |
---|
[b7d3cc34] | 225 | } |
---|
| 226 | |
---|
[0da65d5] | 227 | static void msn_get_info(struct im_connection *ic, char *who) |
---|
[b7d3cc34] | 228 | { |
---|
| 229 | /* Just make an URL and let the user fetch the info */ |
---|
[84b045d] | 230 | imcb_log( ic, "%s\n%s: %s%s", _("User Info"), _("For now, fetch yourself"), PROFILE_URL, who ); |
---|
[b7d3cc34] | 231 | } |
---|
| 232 | |
---|
[0da65d5] | 233 | static void msn_add_buddy( struct im_connection *ic, char *who, char *group ) |
---|
[b7d3cc34] | 234 | { |
---|
[0da65d5] | 235 | msn_buddy_list_add( ic, "FL", who, who ); |
---|
[b7d3cc34] | 236 | } |
---|
| 237 | |
---|
[0da65d5] | 238 | static void msn_remove_buddy( struct im_connection *ic, char *who, char *group ) |
---|
[b7d3cc34] | 239 | { |
---|
[0da65d5] | 240 | msn_buddy_list_remove( ic, "FL", who ); |
---|
[b7d3cc34] | 241 | } |
---|
| 242 | |
---|
[0da65d5] | 243 | static void msn_chat_send( struct groupchat *c, char *message, int flags ) |
---|
[b7d3cc34] | 244 | { |
---|
[fa29d093] | 245 | struct msn_switchboard *sb = msn_sb_by_chat( c ); |
---|
[b7d3cc34] | 246 | |
---|
| 247 | if( sb ) |
---|
[0da65d5] | 248 | msn_sb_sendmessage( sb, message ); |
---|
| 249 | /* FIXME: Error handling (although this can't happen unless something's |
---|
| 250 | already severely broken) disappeared here! */ |
---|
[b7d3cc34] | 251 | } |
---|
| 252 | |
---|
[0da65d5] | 253 | static void msn_chat_invite( struct groupchat *c, char *msg, char *who ) |
---|
[b7d3cc34] | 254 | { |
---|
[fa29d093] | 255 | struct msn_switchboard *sb = msn_sb_by_chat( c ); |
---|
[b7d3cc34] | 256 | char buf[1024]; |
---|
| 257 | |
---|
| 258 | if( sb ) |
---|
| 259 | { |
---|
| 260 | g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who ); |
---|
| 261 | msn_sb_write( sb, buf, strlen( buf ) ); |
---|
| 262 | } |
---|
| 263 | } |
---|
| 264 | |
---|
[0da65d5] | 265 | static void msn_chat_leave( struct groupchat *c ) |
---|
[b7d3cc34] | 266 | { |
---|
[fa29d093] | 267 | struct msn_switchboard *sb = msn_sb_by_chat( c ); |
---|
[b7d3cc34] | 268 | |
---|
| 269 | if( sb ) |
---|
| 270 | msn_sb_write( sb, "OUT\r\n", 5 ); |
---|
| 271 | } |
---|
| 272 | |
---|
[0da65d5] | 273 | static struct groupchat *msn_chat_with( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 274 | { |
---|
| 275 | struct msn_switchboard *sb; |
---|
[0da65d5] | 276 | struct msn_data *md = ic->proto_data; |
---|
[b7d3cc34] | 277 | char buf[1024]; |
---|
| 278 | |
---|
[0da65d5] | 279 | if( ( sb = msn_sb_by_handle( ic, who ) ) ) |
---|
[b7d3cc34] | 280 | { |
---|
| 281 | debug( "Converting existing switchboard to %s to a groupchat", who ); |
---|
[fa29d093] | 282 | return msn_sb_to_chat( sb ); |
---|
[b7d3cc34] | 283 | } |
---|
| 284 | else |
---|
| 285 | { |
---|
| 286 | struct msn_message *m; |
---|
| 287 | |
---|
[0da65d5] | 288 | if( ( sb = msn_sb_spare( ic ) ) ) |
---|
[b7d3cc34] | 289 | { |
---|
| 290 | debug( "Trying to reuse an existing switchboard as a groupchat with %s", who ); |
---|
| 291 | g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who ); |
---|
| 292 | if( msn_sb_write( sb, buf, strlen( buf ) ) ) |
---|
[fa29d093] | 293 | return msn_sb_to_chat( sb ); |
---|
[b7d3cc34] | 294 | } |
---|
| 295 | |
---|
| 296 | /* If the stuff above failed for some reason: */ |
---|
| 297 | debug( "Creating a new switchboard to groupchat with %s", who ); |
---|
| 298 | |
---|
| 299 | /* Request a new switchboard. */ |
---|
| 300 | g_snprintf( buf, sizeof( buf ), "XFR %d SB\r\n", ++md->trId ); |
---|
[0da65d5] | 301 | if( !msn_write( ic, buf, strlen( buf ) ) ) |
---|
[b7d3cc34] | 302 | return( 0 ); |
---|
| 303 | |
---|
| 304 | /* Create a magic message. This is quite hackish, but who cares? :-P */ |
---|
| 305 | m = g_new0( struct msn_message, 1 ); |
---|
| 306 | m->who = g_strdup( who ); |
---|
| 307 | m->text = g_strdup( GROUPCHAT_SWITCHBOARD_MESSAGE ); |
---|
| 308 | |
---|
| 309 | /* Queue the magic message and cross your fingers. */ |
---|
| 310 | md->msgq = g_slist_append( md->msgq, m ); |
---|
| 311 | |
---|
[fa29d093] | 312 | /* FIXME: Can I try to return something here already? */ |
---|
| 313 | return NULL; |
---|
[b7d3cc34] | 314 | } |
---|
| 315 | |
---|
[fa29d093] | 316 | return NULL; |
---|
[b7d3cc34] | 317 | } |
---|
| 318 | |
---|
[0da65d5] | 319 | static void msn_keepalive( struct im_connection *ic ) |
---|
[b7d3cc34] | 320 | { |
---|
[0da65d5] | 321 | msn_write( ic, "PNG\r\n", strlen( "PNG\r\n" ) ); |
---|
[b7d3cc34] | 322 | } |
---|
| 323 | |
---|
[0da65d5] | 324 | static void msn_add_permit( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 325 | { |
---|
[0da65d5] | 326 | msn_buddy_list_add( ic, "AL", who, who ); |
---|
[b7d3cc34] | 327 | } |
---|
| 328 | |
---|
[0da65d5] | 329 | static void msn_rem_permit( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 330 | { |
---|
[0da65d5] | 331 | msn_buddy_list_remove( ic, "AL", who ); |
---|
[b7d3cc34] | 332 | } |
---|
| 333 | |
---|
[0da65d5] | 334 | static void msn_add_deny( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 335 | { |
---|
| 336 | struct msn_switchboard *sb; |
---|
| 337 | |
---|
[0da65d5] | 338 | msn_buddy_list_add( ic, "BL", who, who ); |
---|
[b7d3cc34] | 339 | |
---|
| 340 | /* If there's still a conversation with this person, close it. */ |
---|
[0da65d5] | 341 | if( ( sb = msn_sb_by_handle( ic, who ) ) ) |
---|
[b7d3cc34] | 342 | { |
---|
| 343 | msn_sb_destroy( sb ); |
---|
| 344 | } |
---|
| 345 | } |
---|
| 346 | |
---|
[0da65d5] | 347 | static void msn_rem_deny( struct im_connection *ic, char *who ) |
---|
[b7d3cc34] | 348 | { |
---|
[0da65d5] | 349 | msn_buddy_list_remove( ic, "BL", who ); |
---|
[b7d3cc34] | 350 | } |
---|
| 351 | |
---|
[0da65d5] | 352 | static int msn_send_typing( struct im_connection *ic, char *who, int typing ) |
---|
[b7d3cc34] | 353 | { |
---|
| 354 | if( typing ) |
---|
[0da65d5] | 355 | return( msn_send_im( ic, who, TYPING_NOTIFICATION_MESSAGE, 0 ) ); |
---|
[b7d3cc34] | 356 | else |
---|
| 357 | return( 1 ); |
---|
| 358 | } |
---|
| 359 | |
---|
[911f2eb] | 360 | static char *msn_set_display_name( set_t *set, char *value ) |
---|
| 361 | { |
---|
| 362 | account_t *acc = set->data; |
---|
[0da65d5] | 363 | struct im_connection *ic = acc->ic; |
---|
[911f2eb] | 364 | struct msn_data *md; |
---|
[e97827b] | 365 | char buf[1024], *fn; |
---|
[911f2eb] | 366 | |
---|
| 367 | /* Double-check. */ |
---|
[0da65d5] | 368 | if( ic == NULL ) |
---|
[911f2eb] | 369 | return NULL; |
---|
| 370 | |
---|
[0da65d5] | 371 | md = ic->proto_data; |
---|
[911f2eb] | 372 | |
---|
| 373 | if( strlen( value ) > 129 ) |
---|
| 374 | { |
---|
[84b045d] | 375 | imcb_log( ic, "Maximum name length exceeded" ); |
---|
[911f2eb] | 376 | return NULL; |
---|
| 377 | } |
---|
| 378 | |
---|
[e97827b] | 379 | fn = msn_http_encode( value ); |
---|
[911f2eb] | 380 | |
---|
[c2fb3809] | 381 | g_snprintf( buf, sizeof( buf ), "REA %d %s %s\r\n", ++md->trId, ic->acc->user, fn ); |
---|
[0da65d5] | 382 | msn_write( ic, buf, strlen( buf ) ); |
---|
[911f2eb] | 383 | g_free( fn ); |
---|
| 384 | |
---|
| 385 | /* Returning NULL would be better, because the server still has to |
---|
| 386 | confirm the name change. However, it looks a bit confusing to the |
---|
| 387 | user. */ |
---|
| 388 | return value; |
---|
| 389 | } |
---|
| 390 | |
---|
[0da65d5] | 391 | void msn_initmodule() |
---|
[b7d3cc34] | 392 | { |
---|
[7b23afd] | 393 | struct prpl *ret = g_new0(struct prpl, 1); |
---|
[911f2eb] | 394 | |
---|
[7b23afd] | 395 | ret->name = "msn"; |
---|
[b7d3cc34] | 396 | ret->login = msn_login; |
---|
[0da65d5] | 397 | ret->init = msn_init; |
---|
| 398 | ret->logout = msn_logout; |
---|
[b7d3cc34] | 399 | ret->send_im = msn_send_im; |
---|
| 400 | ret->away_states = msn_away_states; |
---|
| 401 | ret->get_status_string = msn_get_status_string; |
---|
| 402 | ret->set_away = msn_set_away; |
---|
| 403 | ret->get_info = msn_get_info; |
---|
[0da65d5] | 404 | ret->set_my_name = msn_set_my_name; |
---|
[b7d3cc34] | 405 | ret->add_buddy = msn_add_buddy; |
---|
| 406 | ret->remove_buddy = msn_remove_buddy; |
---|
| 407 | ret->chat_send = msn_chat_send; |
---|
| 408 | ret->chat_invite = msn_chat_invite; |
---|
| 409 | ret->chat_leave = msn_chat_leave; |
---|
[0da65d5] | 410 | ret->chat_with = msn_chat_with; |
---|
[b7d3cc34] | 411 | ret->keepalive = msn_keepalive; |
---|
| 412 | ret->add_permit = msn_add_permit; |
---|
| 413 | ret->rem_permit = msn_rem_permit; |
---|
| 414 | ret->add_deny = msn_add_deny; |
---|
| 415 | ret->rem_deny = msn_rem_deny; |
---|
| 416 | ret->send_typing = msn_send_typing; |
---|
[5b52a48] | 417 | ret->handle_cmp = g_strcasecmp; |
---|
[b7d3cc34] | 418 | |
---|
[7b23afd] | 419 | register_protocol(ret); |
---|
[b7d3cc34] | 420 | } |
---|