Changeset a93e3c8


Ignore:
Timestamp:
2006-07-09T10:54:45Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b0a33a5
Parents:
bf25fa3
Message:

Fixed irc_names() (forgot to add @s for user/root in the new version).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rbf25fa3 ra93e3c8  
    652652        char namelist[385] = "";
    653653        struct conversation *c = NULL;
     654        char *ops = set_getstr( irc, "ops" );
    654655       
    655656        /* RFCs say there is no error reply allowed on NAMES, so when the
     
    668669                        if( u->gc && !u->away && set_getint( irc, "away_devoice" ) )
    669670                                strcat( namelist, "+" );
     671                        else if( ( strcmp( u->nick, irc->mynick ) == 0 && ( strcmp( ops, "root" ) == 0 || strcmp( ops, "both" ) == 0 ) ) ||
     672                                 ( strcmp( u->nick, irc->nick ) == 0 && ( strcmp( ops, "user" ) == 0 || strcmp( ops, "both" ) == 0 ) ) )
     673                                strcat( namelist, "@" );
    670674                       
    671675                        strcat( namelist, u->nick );
     
    676680        {
    677681                GList *l;
    678                 char *ops = set_getstr( irc, "ops" );
    679682               
    680683                /* root and the user aren't in the channel userlist but should
Note: See TracChangeset for help on using the changeset viewer.