Changeset 1a3ba05 for irc_channel.c


Ignore:
Timestamp:
2010-05-03T11:55:06Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0d4a068
Parents:
f924563
Message:

Fixed strncpy() usage, and show error when trying to msg non-existent people
via the channel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    rf924563 r1a3ba05  
    201201                irc_user_t *iu;
    202202               
     203                memset( to, 0, sizeof( to ) );
    203204                strncpy( to, msg, s - msg );
    204205                while( *(++s) && isspace( *s ) ) {}
     
    210211                        iu->f->privmsg( iu, s );
    211212                }
     213                else
     214                {
     215                        irc_send_msg_f( irc->root, "PRIVMSG", ic->name,
     216                                        "User does not exist: %s", to );
     217                }
    212218        }
    213219        else
Note: See TracChangeset for help on using the changeset viewer.