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

Diff of /ircd-hybrid-7.2/modules/m_admin.c

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

revision 1006 by michael, Mon May 8 18:40:00 2006 UTC revision 1007 by michael, Tue Sep 1 15:25:26 2009 UTC
# Line 1  Line 1 
1  /*  /*
2   *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).   *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
  *  m_admin.c: Sends administrative information to a user.  
3   *   *
4   *  Copyright (C) 2002 by the past and present ircd coders, and others.   *  Copyright (C) 2002 by the past and present ircd coders, and others.
5   *   *
# Line 18  Line 17 
17   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
18   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
19   *  USA   *  USA
20   *   */
21   *  $Id$  
22    /*! \file m_admin.c
23     * \brief Includes required functions for processing the ADMIN command.
24     * \version $Id$
25   */   */
26    
27  #include "stdinc.h"  #include "stdinc.h"
# Line 72  _moddeinit(void) Line 74  _moddeinit(void)
74  }  }
75  #endif  #endif
76    
77  /*  /*! \brief ADMIN command handler (called by unregistered,
78   * mr_admin - ADMIN command handler   *         locally connected clients)
79   *      parv[0] = sender prefix     *
80   *      parv[1] = servername     * \param client_p Pointer to allocated Client struct with physical connection
81     *                 to this server, i.e. with an open socket connected.
82     * \param source_p Pointer to allocated Client struct from which the message
83     *                 originally comes from.  This can be a local or remote client.
84     * \param parc     Integer holding the number of supplied arguments.
85     * \param parv     Argument vector where parv[0] .. parv[parc-1] are non-NULL
86     *                 pointers.
87     * \note Valid arguments for this command are:
88     *      - parv[0] = sender prefix
89   */   */
90  static void  static void
91  mr_admin(struct Client *client_p, struct Client *source_p,  mr_admin(struct Client *client_p, struct Client *source_p,
# Line 101  mr_admin(struct Client *client_p, struct Line 111  mr_admin(struct Client *client_p, struct
111  #endif  #endif
112  }  }
113    
114  /*  /*! \brief NICK command handler (called by already registered,
115   * m_admin - ADMIN command handler   *         locally connected clients)
116   *      parv[0] = sender prefix   *
117   *      parv[1] = servername   * \param client_p Pointer to allocated Client struct with physical connection
118     *                 to this server, i.e. with an open socket connected.
119     * \param source_p Pointer to allocated Client struct from which the message
120     *                 originally comes from.  This can be a local or remote client.
121     * \param parc     Integer holding the number of supplied arguments.
122     * \param parv     Argument vector where parv[0] .. parv[parc-1] are non-NULL
123     *                 pointers.
124     * \note Valid arguments for this command are:
125     *      - parv[0] = sender prefix
126     *      - parv[1] = nickname/servername
127   */   */
128  static void  static void
129  m_admin(struct Client *client_p, struct Client *source_p,  m_admin(struct Client *client_p, struct Client *source_p,
# Line 133  m_admin(struct Client *client_p, struct Line 152  m_admin(struct Client *client_p, struct
152  #endif  #endif
153  }  }
154    
155  /*  /*! \brief ADMIN command handler (called by operators and
156   * ms_admin - ADMIN command handler, used for OPERS as well   *         remotely connected clients)
157   *      parv[0] = sender prefix   *
158   *      parv[1] = servername   * \param client_p Pointer to allocated Client struct with physical connection
159     *                 to this server, i.e. with an open socket connected.
160     * \param source_p Pointer to allocated Client struct from which the message
161     *                 originally comes from.  This can be a local or remote client.
162     * \param parc     Integer holding the number of supplied arguments.
163     * \param parv     Argument vector where parv[0] .. parv[parc-1] are non-NULL
164     *                 pointers.
165     * \note Valid arguments for this command are:
166     *      - parv[0] = sender prefix
167     *      - parv[1] = nickname/servername
168   */   */
169  static void  static void
170  ms_admin(struct Client *client_p, struct Client *source_p,  ms_admin(struct Client *client_p, struct Client *source_p,
# Line 154  ms_admin(struct Client *client_p, struct Line 182  ms_admin(struct Client *client_p, struct
182  #endif  #endif
183  }  }
184    
185  /* do_admin()  /*! \brief Sends administrative information about this server.
186   *   *
187   * inputs       - pointer to client to report to   * \param source_p Pointer to client to report to
  * output       - none  
  * side effects - admin info is sent to client given  
188   */   */
189  static void  static void
190  do_admin(struct Client *source_p)  do_admin(struct Client *source_p)

Legend:
Removed from v.1006  
changed lines
  Added in v.1007

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