mIRC Home    About    Download    Register    News    Help

Print Thread
#217581 17/01/10 08:46 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
RAW 352:*:{
if (*serv* iswm $6) ( ,set %co $6 )
if (* isin $7) set %ircops $addtok(%ircops,$6,32)
haltdef
}

RAW 315:*:{ echo -a 4,0Ircops: %co | haltdef }


[AFRODITA][ CoYoTE VerDuGo zean Operlog SecureServ Futurama StatServ DeBuG TextServ HostServ1 QuoteServ NeoStats agatha |shx| Global HelpServ BotServ MemoServ HostServ ChanServ NickServ OperServ Zeus^ NiKoS_ PRoXy

i want erased the bots like chanserv,secureserv and stuff
any help?

thnx

TheWarlock #217583 17/01/10 02:42 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Below's a suggestion only smile
You may want to separate the who-replies for different channels and connections with e.g. a dynamic variable.

Code:
; who reply
RAW 352:*:{
  ; the user is on any channel (if you /who a channel, $2 will be this channel's name)
  if ($left($2,1) isincs $chantypes) {
    ; if the reply contains the *-char in "modes", and the "nick"-token does not match *serv
    if (* isin $7) && (*serv !iswm $6) {
      ; add this nick to a dynamic variable named "%ircops<connectionID><channel>"
      ; this variable will unset after 20 seconds or on mIRC exit
      set -eu20 $+(%,ircops,$cid,$2) $addtok( $($+(%,ircops,$cid,$2),2) ,$6,32)
    }
    haltdef
  }
}

; end of who
RAW 315:*:{
  ; you who'd a channel
  if ($left($2,1) isincs $chantypes) {
    ; echo to the channel window the content of the dynamic variable (or "none", if the variable has no content)
    echo $2 4,0Ircops $2 $+ : $iif( $($+(%,ircops,$cid,$2),2) ,$v1,none)
    unset $+(%,ircops,$cid,$2)
    haltdef
  }
}

Last edited by Horstl; 17/01/10 02:50 PM.
Horstl #217604 17/01/10 07:17 PM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
thnx so much

Horstl #217605 17/01/10 07:36 PM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
but still show chanserv and stuff

TheWarlock #217610 18/01/10 12:35 AM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
&& (*serv !iswm $6) should've resolved this...
Did you replace your code with the new code? To ensure the new code is processed, change for example the color number in the /echo command. And while in that channel, what's the return of //echo -a $address(ChanServ,5) ?

Horstl #217611 18/01/10 01:20 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
yes i change , can you paste the complete code ,thank , i wanna show only the real ircops

thnx so much

TheWarlock #217650 19/01/10 01:00 AM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Hum, the code above was meant to replace your code. I don't know if you issue the /who # manually, or auto-who on join, or use a menu or the like.

Anyway, below's yet another version (full script). It uses dynamically named timers in place of the dynamic variables. It also won't /haltdef replies for other /who requests, it will sort the output, etc.
In your channel menu youl'll find a new item to scan for opers. You can set exceptions (like *serv) there as well.
Code:
menu channel {
  IRCOp-Scan 
  .$iif($timer($+(opersc,$cid,$chr(1),$chan)),$style(2)) Scan chan $chan now : {
    who $chan
    $+(.timeropersc,$cid,$chr(1),$chan) 1 25 opersc.off
  }
  .Set exclusions $chr(91) $numtok(%opersc.exclude,32) set $chr(93): {
    set %opersc.exclude $input(Nicks will be excluded from the output message if any mask in the following string $&
      matches the user's address. $crlf $crlf $+ Put masks in the format nick!user@host. $crlf $+ Separate multiple $&
      masks with a space.You may use wildcards (example: *serv!*@*).,eog,Set exclusions for IRCop-Scan,%opersc.exclude)
    opersc.maketable
  }
}

alias -l opersc.off { if ($hget($ctimer)) hfree $v1 }

alias -l opersc.maketable {
  var %n = 1
  if ($hget(opersc.exclude)) { hfree $v1 }
  while ($gettok(%opersc.exclude,%n,32)) {
    hadd -m opersc.exclude $v1
    inc %n
  }
}

on *:start: { opersc.maketable }

raw 352:*: {
  if ($timer($+(opersc,$cid,$chr(1),$2))) {
    haltdef
    if (* isin $7) {
      var %t = $+(opersc,$cid,$chr(1),$2)
      if ($hfind(opersc.exclude,$+($6,!,$3,@,$4),1,W)) { hinc -m %t excluded }
      else { hadd -m %t onicks $addtok($hget(%t,onicks),$6,32) }
    }
  }
}

raw 315:*: {
  if ($timer($+(opersc,$cid,$chr(1),$2))) {
    haltdef
    var %t = $timer($v1), %w = $gettok(%t,-1,1), %h = $sorttok($hget(%t,onicks),32), %n = $numtok(%h,32), %e = $hget(%t,excluded)
    ECHO $iif((%w ischan),$v1) * Found $iif((%n || %e),%n $iif(%e,$+([+,%e,])),no) $iif((%n != 1),users,user), with IRCOP-flag in %w $+ $iif(%h,:,.)
    $iif(%h,ECHO $iif((%w ischan),$v1) %h)
    .timer $+ %t -e
  }
}

on *:disconnect: {
  var %n = 1
  while ($timer(%n)) { $iif(($+(opersc,$cid,$chr(1),*) iswm $v1),timer $+ $v2 -e,inc %n) }
}

on *:unload: { 
  unset %opersc.exclude
  hfree -w opersc.*
}

Note that I did not test the script intensely.
Both the scan and the exclusions-filter do work for me though.

Last edited by Horstl; 19/01/10 01:11 AM.
Horstl #217690 20/01/10 08:43 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
you rules man , thx so much preciate , the effort , preciate

Horstl #217691 20/01/10 08:47 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
Ircops #Staff: ZeRo asdasd ][EDUAR][ Abrill TaX VerDuGo ][AFRODITA][ Joseeeee CoYoTE
* Encontro 9 users Ircops en #staff:
][AFRODITA][ ][EDUAR][ Abrill asdasd CoYoTE Joseeeee TaX VerDuGo ZeRo

the thirth line how i erase, please

TheWarlock #217705 20/01/10 02:57 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
You've changed the code... how exactly shall the output look like (example)?

Horstl #217715 20/01/10 04:46 PM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
dont change nothing ,thnx

TheWarlock #217716 20/01/10 04:57 PM
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
You translated the text for the 2nd line (that's OK), but the first line is definitely not produced by the code I gave. smirk
I think you didn't remove all "older" scripts that do an "ircop scan".

Horstl #217724 21/01/10 12:13 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
my mystake , bro, its clear source, its work just fine, thnx so much


Link Copied to Clipboard