Changes in irc.c [dd89a55:fc630f9]
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rdd89a55 rfc630f9 830 830 irc_reply( irc, 332, "%s :BitlBee groupchat: \"%s\". Please keep in mind that root-commands won't work here. Have fun!", channel, c->title ); 831 831 else 832 irc_reply( irc, 331, "%s :No topic for this channel" );832 irc_reply( irc, 331, "%s :No topic for this channel", channel ); 833 833 } 834 834 } … … 886 886 if( g_hash_table_lookup( irc->watches, nick ) ) 887 887 { 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" ); 889 889 } 890 890 g_free( nick ); … … 911 911 if( g_hash_table_lookup( irc->watches, nick ) ) 912 912 { 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" ); 914 914 } 915 915 g_free( nick ); … … 1011 1011 else if( c && c->gc && c->gc->prpl ) 1012 1012 { 1013 return( serv_send_chat( irc,c->gc, c->id, s ) );1013 return( bim_chat_msg( c->gc, c->id, s ) ); 1014 1014 } 1015 1015 … … 1021 1021 user_t *u = data; 1022 1022 1023 /* Shouldn't happen, but just to be sure. */ 1024 if( u->sendbuf_len < 2 ) 1025 return FALSE; 1026 1023 1027 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 ); 1025 1029 1026 1030 g_free( u->sendbuf ); … … 1030 1034 u->sendbuf_flags = 0; 1031 1035 1032 return ( FALSE );1036 return FALSE; 1033 1037 } 1034 1038 … … 1043 1047 if( u->sendbuf_len > 0 && u->sendbuf_flags != flags) 1044 1048 { 1045 / /Flush the buffer1049 /* Flush the buffer */ 1046 1050 g_source_remove( u->sendbuf_timer ); 1047 1051 buddy_send_handler_delayed( u ); … … 1051 1055 { 1052 1056 u->sendbuf_len = strlen( msg ) + 2; 1053 u->sendbuf = g_new (char, u->sendbuf_len );1057 u->sendbuf = g_new( char, u->sendbuf_len ); 1054 1058 u->sendbuf[0] = 0; 1055 1059 u->sendbuf_flags = flags; … … 1058 1062 { 1059 1063 u->sendbuf_len += strlen( msg ) + 1; 1060 u->sendbuf = g_renew 1064 u->sendbuf = g_renew( char, u->sendbuf, u->sendbuf_len ); 1061 1065 } 1062 1066 … … 1074 1078 else 1075 1079 { 1076 serv_send_im( irc, u, msg, flags );1080 bim_buddy_msg( u->gc, u->handle, msg, flags ); 1077 1081 } 1078 1082 }
Note: See TracChangeset
for help on using the changeset viewer.