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

Diff of /ircd-hybrid/modules/m_version.c

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

revision 608 by db, Fri Feb 17 05:07:43 2006 UTC revision 609 by michael, Tue May 16 10:42:05 2006 UTC
# Line 88  m_version(struct Client *client_p, struc Line 88  m_version(struct Client *client_p, struc
88                 me.name, source_p->name);                 me.name, source_p->name);
89      return;      return;
90    }    }
91    else  
92      last_used = CurrentTime;    last_used = CurrentTime;
93    
94    if (!ConfigFileEntry.disable_remote)    if (!ConfigFileEntry.disable_remote)
95    {      if (hunt_server(source_p, ":%s VERSION :%s",
     if (hunt_server(client_p, source_p, ":%s VERSION :%s",  
96                      1, parc, parv) != HUNTED_ISME)                      1, parc, parv) != HUNTED_ISME)
97        return;        return;
   }  
98    
99    sendto_one(source_p, form_str(RPL_VERSION),    sendto_one(source_p, form_str(RPL_VERSION),
100               me.name, source_p->name, ircd_version, serno,               me.name, source_p->name, ircd_version, serno,
# Line 114  mo_version(struct Client *client_p, stru Line 112  mo_version(struct Client *client_p, stru
112             int parc, char *parv[])             int parc, char *parv[])
113  {  {
114        
115    if (hunt_server(client_p, source_p, ":%s VERSION :%s",    if (hunt_server(source_p, ":%s VERSION :%s",
116                    1, parc, parv) != HUNTED_ISME)                    1, parc, parv) != HUNTED_ISME)
117      return;      return;
118    
# Line 133  static void Line 131  static void
131  ms_version(struct Client *client_p, struct Client *source_p,  ms_version(struct Client *client_p, struct Client *source_p,
132             int parc, char *parv[])             int parc, char *parv[])
133  {  {
134    if (hunt_server(client_p, source_p, ":%s VERSION :%s",    if (hunt_server(source_p, ":%s VERSION :%s",
135                    1, parc, parv) == HUNTED_ISME)                    1, parc, parv) != HUNTED_ISME)
136    {      return;
137      sendto_one(source_p, form_str(RPL_VERSION),  
138                 ID_or_name(&me, client_p),    sendto_one(source_p, form_str(RPL_VERSION),
139                 ID_or_name(source_p, client_p),               ID_or_name(&me, client_p),
140                 ircd_version, serno,               ID_or_name(source_p, client_p),
141                 me.name, confopts(source_p), serveropts);               ircd_version, serno,
142      show_isupport(source_p);               me.name, confopts(source_p), serveropts);
143    }    show_isupport(source_p);
144  }  }
145    
146  /* confopts()  /* confopts()

Legend:
Removed from v.608  
changed lines
  Added in v.609

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