Ignore:
Timestamp:
02/12/07 05:52:32 (5 years ago)
Author:
wd
Message:

Get the base/existing IRC module compiling again. Clear out old junk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/ircd.h

    r579 r801  
    149149 
    150150        /* the three connection stage events, used by the acl system, and 
    151          * maybe others. */ 
    152         event_t        *stage1_connect; 
    153         event_t        *stage2_connect; 
    154         event_t        *stage3_connect; 
     151         * maybe others.   connection_registered only fires for CLIENTS 
     152         * which are registered. */ 
     153        event_t        *connection_connected; 
     154        event_t        *connection_unregistered; 
     155        event_t        *connection_registered; 
    155156 
    156157        /* other events */ 
    157         event_t        *client_connect;    /* called after the stage*_connect to note 
     158        event_t *client_connect;    /* called after connection_registered to note 
    158159                                       the connection of a (local) client */ 
    159160        event_t *client_disconnect; /* called when a registered client (local) 
    160161                                       is disconnecting from the server */ 
    161         event_t        *register_client;   /* called from register_client() for all 
     162        event_t *register_client;   /* called from register_client() for all 
    162163                                       connecting clients. */ 
    163164        event_t *unregister_client; /* called from destroy_client() for all 
     
    170171                                       initially created. */ 
    171172        event_t *channel_destroy;   /* same, but for destruction. */ 
    172         event_t        *channel_add;            /* hooked when a client joins a channel */ 
    173         event_t        *channel_del;            /* same, but with part */ 
    174  
    175         event_t        *server_introduce;  /* called when server_introduce() is 
     173        event_t *channel_add;            /* hooked when a client joins a channel */ 
     174        event_t *channel_del;            /* same, but with part */ 
     175 
     176        event_t *server_introduce;  /* called when server_introduce() is 
    176177                                       called, the server's structure is passed 
    177178                                       as the data */ 
    178         event_t        *server_establish;  /* called during the misc phase of 
     179        event_t *server_establish;  /* called during the misc phase of 
    179180                                       server_establish(), extra data that 
    180181                                       might need to be sent should be sent 
    181182                                       here! */ 
    182183 
    183         event_t        *can_join_channel;  /* called when the can_join_channel() 
    184                                        function is called.  see channel.h */ 
    185         event_t        *can_see_channel;   /* called when the can_see_channel() 
    186                                        function is called.  see channel.h */ 
    187         event_t        *can_send_channel;  /* called when the can_send_channel() 
    188                                        function is called.  see channel.h */ 
    189         event_t        *can_nick_channel;  /* called when the can_nick_channel() 
     184        event_t *can_join_channel;  /* called when the can_join_channel() 
     185                                       function is called.  see channel.h */ 
     186        event_t *can_see_channel;   /* called when the can_see_channel() 
     187                                       function is called.  see channel.h */ 
     188        event_t *can_send_channel;  /* called when the can_send_channel() 
     189                                       function is called.  see channel.h */ 
     190        event_t *can_nick_channel;  /* called when the can_nick_channel() 
    190191                                       function is called.  see channel.h */ 
    191192 
     
    197198 
    198199    struct { 
    199         /* while there are three connection stages, the last one has no list 
    200          * as it is very brief, clients who would pass stage3 are in the, you 
    201          * guessed it, client list */ 
    202         LIST_HEAD(, connection) *stage1; 
    203         LIST_HEAD(, connection) *stage2; 
     200        /* connection groupings.  connected clients are fresh off an 
     201         * accept(), unregistered clients have passed a set of rudimentary 
     202         * checks but not yet registered, and registered connections are 
     203         * clients.  servers share a separate list but would also be 
     204         * considered 'registered' */ 
     205        LIST_HEAD(, connection) *connected; 
     206        LIST_HEAD(, connection) *unregistered; 
    204207 
    205208        LIST_HEAD(, connection) *clients; 
    206209 
    207         /* server connections are here, so they aren't handled with client 
    208          * connections (which are (assumed)stages 1/2, and (known) stage3) */ 
    209210        LIST_HEAD(, connection) *servers; 
    210211    } connections; 
Note: See TracChangeset for help on using the changeset viewer.