Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rdd89a55 rfc630f9  
    830830                        irc_reply( irc, 332, "%s :BitlBee groupchat: \"%s\". Please keep in mind that root-commands won't work here. Have fun!", channel, c->title );
    831831                else
    832                         irc_reply( irc, 331, "%s :No topic for this channel" );
     832                        irc_reply( irc, 331, "%s :No topic for this channel", channel );
    833833        }
    834834}
     
    886886        if( g_hash_table_lookup( irc->watches, nick ) )
    887887        {
    888                 irc_reply( irc, 600, "%s %s %s %d :%s", u->nick, u->user, u->host, time( NULL ), "logged online" );
     888                irc_reply( irc, 600, "%s %s %s %d :%s", u->nick, u->user, u->host, (int) time( NULL ), "logged online" );
    889889        }
    890890        g_free( nick );
     
    911911        if( g_hash_table_lookup( irc->watches, nick ) )
    912912        {
    913                 irc_reply( irc, 601, "%s %s %s %d :%s", u->nick, u->user, u->host, time( NULL ), "logged offline" );
     913                irc_reply( irc, 601, "%s %s %s %d :%s", u->nick, u->user, u->host, (int) time( NULL ), "logged offline" );
    914914        }
    915915        g_free( nick );
     
    10111011        else if( c && c->gc && c->gc->prpl )
    10121012        {
    1013                 return( serv_send_chat( irc, c->gc, c->id, s ) );
     1013                return( bim_chat_msg( c->gc, c->id, s ) );
    10141014        }
    10151015       
     
    10211021        user_t *u = data;
    10221022       
     1023        /* Shouldn't happen, but just to be sure. */
     1024        if( u->sendbuf_len < 2 )
     1025                return FALSE;
     1026       
    10231027        u->sendbuf[u->sendbuf_len-2] = 0; /* Cut off the last newline */
    1024         serv_send_im( u->gc->irc, u, u->sendbuf, u->sendbuf_flags );
     1028        bim_buddy_msg( u->gc, u->handle, u->sendbuf, u->sendbuf_flags );
    10251029       
    10261030        g_free( u->sendbuf );
     
    10301034        u->sendbuf_flags = 0;
    10311035       
    1032         return( FALSE );
     1036        return FALSE;
    10331037}
    10341038
     
    10431047                if( u->sendbuf_len > 0 && u->sendbuf_flags != flags)
    10441048                {
    1045                         //Flush the buffer
     1049                        /* Flush the buffer */
    10461050                        g_source_remove( u->sendbuf_timer );
    10471051                        buddy_send_handler_delayed( u );
     
    10511055                {
    10521056                        u->sendbuf_len = strlen( msg ) + 2;
    1053                         u->sendbuf = g_new (char, u->sendbuf_len );
     1057                        u->sendbuf = g_new( char, u->sendbuf_len );
    10541058                        u->sendbuf[0] = 0;
    10551059                        u->sendbuf_flags = flags;
     
    10581062                {
    10591063                        u->sendbuf_len += strlen( msg ) + 1;
    1060                         u->sendbuf = g_renew ( char, u->sendbuf, u->sendbuf_len );
     1064                        u->sendbuf = g_renew( char, u->sendbuf, u->sendbuf_len );
    10611065                }
    10621066               
     
    10741078        else
    10751079        {
    1076                 serv_send_im( irc, u, msg, flags );
     1080                bim_buddy_msg( u->gc, u->handle, msg, flags );
    10771081        }
    10781082}
Note: See TracChangeset for help on using the changeset viewer.