Changeset edf9657 for irc.c


Ignore:
Timestamp:
2006-01-14T18:25:00Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b23c5c7
Parents:
c22c210
Message:

Fixed the PASS-command, added error messages for invalid commands to irc_exec().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rc22c210 redf9657  
    573573       
    574574        irc_reply( irc, 366, "%s :End of /NAMES list", channel );
     575}
     576
     577int irc_check_login( irc_t *irc )
     578{
     579        if( irc->user && irc->nick )
     580        {
     581                if( global.conf->authmode == AUTHMODE_CLOSED && irc->status < USTATUS_AUTHORIZED )
     582                {
     583                        irc_reply( irc, 464, ":This server is password-protected." );
     584                        return 0;
     585                }
     586                else
     587                {
     588                        irc_login( irc );
     589                        return 1;
     590                }
     591        }
     592        else
     593        {
     594                /* More information needed. */
     595                return 0;
     596        }
    575597}
    576598
Note: See TracChangeset for help on using the changeset viewer.