What's wrong with this piece of code? (mIRC) reddit / irc ---------------------------------------------------------------------- Meowtty · 2016-06-08 01:38 I'm wanting my mods to be able to smite users via the bot (as I have a system that increases punishment akills as the abuse count gets higher) but this code won't work any I'm not sure why. I'm not getting any errors and have been trying stuff out for almost an hour now, can anyone help? Thanks in advance. on *:TEXT:.smite*:#oper:{ if $nick !isop #oper if $2 && $3 { /hinc abuses $2 /var %offense $hget(abuses, $2) /var %duration $calc(%bandelay * %offense ^ 2) /msg #oper giving one offense to $2 for $3- $+ . Current number of offenses is $hget(abuses, $2) and the next ban is for $duration(%duration) $+ . } if !$2 || !$3 { /msg #oper Adds one abuse offense to the user. /msg #oper Format: .smite } if $ial($$2) { /set %addy $address($$2,2) /set %site *@ $+ $gettok(%addy,2,64) /echo -a ADDY %addy Site %site /var %banduration $calc( %duration / 60) /.msg $2 $$2 $nick has given you a abuse offense. The reason is $$3- $+ . /.msg $2 $$2 Here is a list of our basic site rules. Please respect these while you use the chat. /.msg $2 $$2 1) Hate speech will not be tolerated. Racist, sexist, homophobic or transphobic speech will result in your removal from our site. /.msg $2 $$2 2) Messages or links that are obscene, pornographic, depicts illegal acts or is intended to disgust the viewer are not permitted. /.msg $2 $$2 3) Posting personal information and images are not advised, and by doing so you accept all associated risks. /.msg $2 $$2 4) The purpose of staff is to keep users safe, enforce TOS and moderate conversation when necessary. The actions of staff are non debatable in public chat. If you believe a staff member has acted wrongfully and would like to complain, contact admins, who will investigate and act accordingly. /.msg $2 $$2 If you are concerned that rules are being ignored, or a member is making you uncomfortable, PM a member of staff. Use !staff to find out who they are. /timerkill 1 3 /msg operserv akill add + $+ %banduration $+ m %site Smite by $nick for $$3- banned for $duration(%duration) $+ . /.timernotify 1 5 /amsg $$2 was banned for $$3- by $nick and is banned for $duration(%duration) $+ . } } ---------------------------------------------------------------------- mazter00 · 2016-06-08 08:40 On 1:text Etc Or on *:text: ---------------------------------------------------------------------- Meowtty · 2016-06-08 21:51 ah, thank you! Hadn't spotted that :) ---------------------------------------------------------------------- pixelpusher206 · 2016-06-12 05:56 this makes me happy that people are still writing MIRC code :) What mazter00 said... Even I missed that :> ---------------------------------------------------------------------- cocisroc · 2016-06-16 00:14 >if $nick !isop #oper the exclamation mark means not, so if $nick is NOT op will trigger it