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

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

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

revision 1501 by michael, Fri Aug 3 16:10:25 2012 UTC revision 1502 by michael, Tue Aug 14 08:55:15 2012 UTC
# Line 234  m_botserv(struct Client *client_p, struc Line 234  m_botserv(struct Client *client_p, struc
234               me.name, source_p->name, "BotServ");               me.name, source_p->name, "BotServ");
235  }  }
236    
 static void  
 m_identify(struct Client *client_p, struct Client *source_p,  
            int parc, char *parv[])  
 {  
   struct Client *target_p = NULL;  
   
   if (EmptyString(parv[1]))  
   {  
     sendto_one(source_p, form_str(ERR_NOTEXTTOSEND),  
                me.name, source_p->name);  
     return;  
   }  
   
   if (IsChanPrefix(*parv[1]))  
   {  
     if ((target_p = hash_find_server(ConfigFileEntry.service_name)))  
       sendto_one(target_p, ":%s PRIVMSG ChanServ@%s :IDENTIFY %s",  
                  source_p->name, ConfigFileEntry.service_name, parv[1]);  
     else  
       sendto_one(source_p, form_str(ERR_SERVICESDOWN),  
                  me.name, source_p->name, "ChanServ");  
   }  
   else  
   {  
     if ((target_p = hash_find_server(ConfigFileEntry.service_name)))  
       sendto_one(target_p, ":%s PRIVMSG NickServ@%s :IDENTIFY %s",  
                  source_p->name, ConfigFileEntry.service_name, parv[1]);  
     else  
       sendto_one(source_p, form_str(ERR_SERVICESDOWN),  
                  me.name, source_p->name, "NickServ");  
   }  
 }  
237    
238  static struct Message ms_msgtab = {  static struct Message ms_msgtab = {
239    "MS", 0, 0, 0, 1, MFLG_SLOW, 0,    "MS", 0, 0, 0, 1, MFLG_SLOW, 0,
# Line 337  static struct Message helpserv_msgtab = Line 305  static struct Message helpserv_msgtab =
305    {m_unregistered, m_helpserv, m_ignore, m_ignore, m_helpserv, m_ignore}    {m_unregistered, m_helpserv, m_ignore, m_ignore, m_helpserv, m_ignore}
306  };  };
307    
 static struct Message identify_msgtab = {  
   "IDENTIFY", 0, 0, 0, 1, MFLG_SLOW, 0,  
   {m_unregistered, m_identify, m_ignore, m_ignore, m_identify, m_ignore}  
 };  
308    
309  static void  static void
310  module_init(void)  module_init(void)
# Line 352  module_init(void) Line 316  module_init(void)
316    mod_add_cmd(&operserv_msgtab);    mod_add_cmd(&operserv_msgtab);
317    mod_add_cmd(&statserv_msgtab);    mod_add_cmd(&statserv_msgtab);
318    mod_add_cmd(&helpserv_msgtab);    mod_add_cmd(&helpserv_msgtab);
   mod_add_cmd(&identify_msgtab);  
319    mod_add_cmd(&bs_msgtab);    mod_add_cmd(&bs_msgtab);
320    mod_add_cmd(&ns_msgtab);    mod_add_cmd(&ns_msgtab);
321    mod_add_cmd(&cs_msgtab);    mod_add_cmd(&cs_msgtab);
# Line 372  module_exit(void) Line 335  module_exit(void)
335    mod_del_cmd(&operserv_msgtab);    mod_del_cmd(&operserv_msgtab);
336    mod_del_cmd(&statserv_msgtab);    mod_del_cmd(&statserv_msgtab);
337    mod_del_cmd(&helpserv_msgtab);    mod_del_cmd(&helpserv_msgtab);
   mod_del_cmd(&identify_msgtab);  
338    mod_del_cmd(&bs_msgtab);    mod_del_cmd(&bs_msgtab);
339    mod_del_cmd(&ns_msgtab);    mod_del_cmd(&ns_msgtab);
340    mod_del_cmd(&cs_msgtab);    mod_del_cmd(&cs_msgtab);

Legend:
Removed from v.1501  
changed lines
  Added in v.1502

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