X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/5366977b4f3c7a50d170bf7a1e29b14c74944db7..d7b7d8bbdf40036849709d9b520cdd909c9c7eb1:/unsupported/m_force.c diff --git a/unsupported/m_force.c b/unsupported/m_force.c index 6abe8ee..20a3ccf 100644 --- a/unsupported/m_force.c +++ b/unsupported/m_force.c @@ -26,11 +26,10 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: m_force.c 3161 2007-01-25 07:23:01Z nenolod $ + * $Id: m_force.c 3297 2007-03-28 14:49:48Z jilles $ */ #include "stdinc.h" -#include "tools.h" #include "channel.h" #include "class.h" #include "client.h" @@ -40,7 +39,6 @@ #include "ircd.h" #include "hostmask.h" #include "numeric.h" -#include "commio.h" #include "s_conf.h" #include "s_newconf.h" #include "s_log.h" @@ -50,8 +48,6 @@ #include "msg.h" #include "parse.h" #include "modules.h" -#include "event.h" - static int mo_forcejoin(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); @@ -70,7 +66,7 @@ struct Message forcepart_msgtab = { mapi_clist_av1 force_clist[] = { &forcejoin_msgtab, &forcepart_msgtab, NULL }; -DECLARE_MODULE_AV1(force, NULL, NULL, force_clist, NULL, NULL, "$Revision: 3161 $"); +DECLARE_MODULE_AV1(force, NULL, NULL, force_clist, NULL, NULL, "$Revision: 3297 $"); /* * m_forcejoin @@ -90,7 +86,7 @@ mo_forcejoin(struct Client *client_p, struct Client *source_p, int parc, const c if(!IsOperAdmin(source_p)) { - sendto_one(source_p, form_str(ERR_NOPRIVS), me.name, source_p->name, "forcejoin"); + sendto_one(source_p, form_str(ERR_NOPRIVS), me.name, source_p->name, "admin"); return 0; } @@ -219,7 +215,7 @@ mo_forcejoin(struct Client *client_p, struct Client *source_p, int parc, const c sendto_channel_local(ALL_MEMBERS, chptr, ":%s MODE %s +nt", me.name, chptr->chname); - target_p->localClient->last_join_time = CurrentTime; + target_p->localClient->last_join_time = rb_current_time(); channel_member_names(chptr, target_p, 1); /* we do this to let the oper know that a channel was created, this will be @@ -241,7 +237,7 @@ mo_forcepart(struct Client *client_p, struct Client *source_p, int parc, const c if(!IsOperAdmin(source_p)) { - sendto_one(source_p, form_str(ERR_NOPRIVS), me.name, source_p->name, "forcepart"); + sendto_one(source_p, form_str(ERR_NOPRIVS), me.name, source_p->name, "admin"); return 0; }