- Added in some missing handler entries.
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: m_kill.c,v 1.4 2002/01/13 07:15:34 a1kmm Exp $
+ * $Id: m_kill.c,v 1.5 2002/01/30 08:10:27 a1kmm Exp $
*/
#include "handlers.h"
struct Message kill_msgtab[] = {
{"KILL", 0, 0, 2, 0, MFLG_SLOW, 0, &p_unregistered, &m_unregistered},
{"KILL", 0, 0, 2, 0, MFLG_SLOW, 0, &p_user, &m_not_oper},
+ {"KILL", 0, 0, 2, 0, MFLG_SLOW, 0, &p_operuser, &mo_kill},
#ifdef ENABLE_TS5
{"KILL", 0, 0, 2, 0, MFLG_SLOW, 0, &p_ts5, &ms_kill},
#endif
mod_del_cmd(kill_msgtab);
}
-char *_version = "$Revision: 1.4 $";
+char *_version = "$Revision: 1.5 $";
#endif
/*
** mo_kill
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: m_links.c,v 1.4 2002/01/13 07:15:18 a1kmm Exp $
+ * $Id: m_links.c,v 1.5 2002/01/30 08:10:24 a1kmm Exp $
*/
#include "handlers.h"
static void mo_links(struct Client *, struct Client *, int, char **);
static void ms_links(struct Client *, struct Client *, int, char **);
-struct Message links_msgtab = {
+struct Message links_msgtab[] = {
{"LINKS", 0, 0, 0, 0, MFLG_SLOW, 0, &p_unregistered, &m_unregistered},
{"LINKS", 0, 0, 0, 0, MFLG_SLOW, 0, &p_user, &m_links},
{"LINKS", 0, 0, 0, 0, MFLG_SLOW, 0, &p_operuser, &mo_links},
_modinit(void)
{
hook_add_event("doing_links");
- mod_add_cmd(&links_msgtab);
+ mod_add_cmd(links_msgtab);
}
void
_moddeinit(void)
{
hook_del_event("doing_links");
- mod_del_cmd(&links_msgtab);
+ mod_del_cmd(links_msgtab);
}
-char *_version = "$Revision: 1.4 $";
+char *_version = "$Revision: 1.5 $";
#endif
/*
* m_links - LINKS message handler
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * $Id: m_list.c,v 1.4 2002/01/13 07:15:18 a1kmm Exp $
+ * $Id: m_list.c,v 1.5 2002/01/30 08:10:24 a1kmm Exp $
*/
#include "tools.h"
struct Message list_msgtab[] = {
{"LIST", 0, 0, 0, 0, MFLG_SLOW, 0, &p_unregistered, &m_unregistered},
{"LIST", 0, 0, 0, 0, MFLG_SLOW, 0, &p_user, &m_list},
+ {"LIST", 0, 0, 0, 0, MFLG_SLOW, 0, &p_user, &mo_list},
#ifdef ENABLE_TS5
{"LIST", 0, 0, 0, 0, MFLG_SLOW, 0, &p_ts5, &ms_list},
#endif
mod_del_cmd(list_msgtab);
}
-char *_version = "$Revision: 1.4 $";
+char *_version = "$Revision: 1.5 $";
#endif
static int list_all_channels(struct Client *source_p);
static int list_named_channel(struct Client *source_p, char *name);
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * $Id: parse.c,v 1.4 2002/01/13 07:15:39 a1kmm Exp $
+ * $Id: parse.c,v 1.5 2002/01/30 08:10:29 a1kmm Exp $
*/
#include <assert.h>
if (p == NULL)
continue;
}
- ilog(L_WARN, "Found a command handler for %s.", ptr->cmd);
return (ptr->msg);
}
}