aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-09-05 13:08:12 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-09-05 13:08:12 +0100
commit975708ae9af7e0b0212e7852bb8d3fc93488ac49 (patch)
tree59dab0da8a550f143023805955b1c7ce62caf047 /irc_im.c
parent4e1be76617060e89795e381d356f81cd2cbf32dc (diff)
parented320e88b1677266f70b8b163c638bebe2a81e0a (diff)
Mainline merge.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/irc_im.c b/irc_im.c
index 6ddcb432..7fa70350 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -251,7 +251,6 @@ static gboolean bee_irc_user_nick_update( irc_user_t *iu );
static gboolean bee_irc_user_fullname( bee_t *bee, bee_user_t *bu )
{
irc_user_t *iu = (irc_user_t *) bu->ui_data;
- irc_t *irc = (irc_t *) bee->ui_data;
char *s;
if( iu->fullname != iu->nick )
@@ -265,8 +264,11 @@ static gboolean bee_irc_user_fullname( bee_t *bee, bee_user_t *bu )
if( ( bu->ic->flags & OPT_LOGGED_IN ) && set_getbool( &bee->set, "display_namechanges" ) )
{
+ /* People don't like this /NOTICE. Meh, let's go back to the old one.
char *msg = g_strdup_printf( "<< \002BitlBee\002 - Changed name to `%s' >>", iu->fullname );
irc_send_msg( iu, "NOTICE", irc->user->nick, msg, NULL );
+ */
+ imcb_log( bu->ic, "User `%s' changed name to `%s'", iu->nick, iu->fullname );
}
bee_irc_user_nick_update( iu );
@@ -690,7 +692,7 @@ static gboolean bee_irc_channel_chat_privmsg( irc_channel_t *ic, const char *msg
if( ( s = strchr( nick, ':' ) ) || ( s = strchr( nick, ',' ) ) )
{
*s = '\0';
- if( ( iu = irc_user_by_name( ic->irc, nick ) ) &&
+ if( ( iu = irc_user_by_name( ic->irc, nick ) ) && iu->bu &&
iu->bu->nick && irc_channel_has_user( ic, iu ) )
{
trans = g_strconcat( iu->bu->nick, msg + ( s - nick ), NULL );
@@ -795,9 +797,9 @@ static gboolean bee_irc_channel_chat_topic( irc_channel_t *ic, const char *new )
char *topic = g_strdup( new );
c->ic->acc->prpl->chat_topic( c, topic );
g_free( topic );
- return TRUE;
}
+ /* Whatever happened, the IM module should ack the topic change. */
return FALSE;
}