/[svn]/ircd-hybrid-8/modules/m_list.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/m_list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1448 by michael, Mon May 7 20:08:32 2012 UTC revision 1449 by michael, Tue Jun 26 18:17:03 2012 UTC
# Line 157  do_list(struct Client *source_p, int par Line 157  do_list(struct Client *source_p, int par
157  }  }
158    
159  /*  /*
 ** m_list  
 **      parv[0] = sender prefix  
 **      parv[1] = channel  
 */  
 static void  
 m_list(struct Client *client_p, struct Client *source_p,  
        int parc, char *parv[])  
 {  
   static time_t last_used = 0;  
   
   if (((last_used + ConfigFileEntry.pace_wait) > CurrentTime))  
   {  
     sendto_one(source_p, form_str(RPL_LOAD2HI),  
                me.name, source_p->name);  
     return;  
   }  
   
   last_used = CurrentTime;  
   
   do_list(source_p, parc, parv);  
 }  
   
 /*  
160  ** mo_list  ** mo_list
161  **      parv[0] = sender prefix  **      parv[0] = sender prefix
162  **      parv[1] = channel  **      parv[1] = channel
163  */  */
164  static void  static void
165  mo_list(struct Client *client_p, struct Client *source_p,  m_list(struct Client *client_p, struct Client *source_p,
166          int parc, char *parv[])          int parc, char *parv[])
167  {  {
168    do_list(source_p, parc, parv);    do_list(source_p, parc, parv);
# Line 193  mo_list(struct Client *client_p, struct Line 170  mo_list(struct Client *client_p, struct
170    
171  static struct Message list_msgtab = {  static struct Message list_msgtab = {
172    "LIST", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,    "LIST", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
173    {m_unregistered, m_list, m_ignore, m_ignore, mo_list, m_ignore}    { m_unregistered, m_list, m_ignore, m_ignore, m_list, m_ignore }
174  };  };
175    
176  static void  static void

Legend:
Removed from v.1448  
changed lines
  Added in v.1449

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28