mIRC Home    About    Download    Register    News    Help

Print Thread
badchan system please #267262 01/05/20 06:53 PM
Joined: Oct 2014
Posts: 34
O
Orobas Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Oct 2014
Posts: 34
Looking to reduce strain on operserv with forbid channels and have a script running on my bot where i can add / remove / view channels via dialogue (preferable) or via command and when #services announces a user joining a matching channel it will os kick channel user reason and then message #op channel that user was removed from said channel.

if possible.. i would like ops in the named #ops channel to be able to !add #channel , !view badchan, !del badchan also.

Update..... with thanks for some hints from some friends i have cobbled together the following

Code
on ^*:text:*:#: {
  if (($network == xx) && ($chan == #services) && ($nick == ChanServ)) {
    if (*join #* iswm $1-) {
      echo -s $gettok($2,1,33) - $4 
      ;os kick $5 $2 derp
      var %ty = #chan1 #chan2 #chan3
      if ($4 isin %ty) echo -s this would now os kick $gettok($2,1,33) from $4
    }
  }
}


it is echoing correctly and no errors..

now.. the next part is beyond me.. which is my original question.. I just have got a working part for now.

Last edited by Orobas; 01/05/20 11:15 PM. Reason: updated sections
Re: badchan system please [Re: Orobas] #267306 15/05/20 10:05 PM
Joined: Oct 2014
Posts: 34
O
Orobas Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Oct 2014
Posts: 34
This is an update. this has now been fixed and is running correctly