Oper windows on mIRC (5.91 tested)

Discussion in 'Scripts/Documentation/FAQs' started by derfy, Jul 21, 2005.

  1. derfy Administrator

    Paste this in your remotes:
    Code:
    #opswv2 on
    on ^*:snotice:*:{
      if (*Client* iswm $2) {
        if (!$window(@users)) { window -a @users }
        aline -hpc5 @users ( $+ $time $+ ) $+ <U> $4-
        write $mircdiroperlogs\users_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
        halt
        haltdef
      }
      if (global iswm $2) {
        if (!$window(@globops)) { window -ae @globops }
        aline -hpc5 @globops ( $+ $time $+ ) $+ <G> $5-
        write $mircdiroperlogs\globals_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
        halt
        haltdef
      }
      if (chatops iswm $2) {
        if (!$window(@chatops)) { window -ae @chatops }
        aline -hpc5 @chatops ( $+ $time $+ ) $+ <C> $5-
        write $mircdiroperlogs\chatops_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
        halt
        haltdef
      }
      if (locops iswm $2) {
        if (!$window(@locops)) { window -ae @locops }
        aline -hpc5 @locops ( $+ $time $+ ) $+ <L> $5-
        write $mircdiroperlogs\locops_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
        halt
        haltdef
      }
      if (*received*kill*message* iswm $4-6) {
        if (*(Flooding/clones)* iswm $1-) { write $mircdiroperlogs\strangebotkills_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1- | halt }
        if (!$window(@kills)) { window @kills }
        aline -hpc5 @kills ( $+ $time $+ ) $+ <K> $4-
        write $mircdiroperlogs\kills_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
        halt
        haltdef
      }
      else {
        if (*saved*maxclient*statistics* iswm $1-) { halt }
        if (*PVNet-IRCdStat* iswm $1-) { halt }
        if (*is requesting a resynch of* iswm $1-) { 
          write $mircdiroperlogs\resynchs_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
          halt
        }
    
        if (!$window(@snotice)) { window -e @snotice }
        aline -hpc5 @snotice ( $+ $time $+ ) $+ <M> $1-
        write $mircdiroperlogs\misc_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $1-
        halt
        haltdef
      }
    }
    
    on ^*:wallops:*:{
      if (!$window(@wallops)) { window -e @wallops }
      aline -hpc5 @wallops ( $+ $time $+ ) $+ <W> $nick $+ : $1-
      write $mircdiroperlogs\wallops_ $+ $server $+ $date(mm-dd-yy) $+ .log $timestamp $nick $+ : $1-
      halt
    }
    
    on *:input:@chatops:{ .raw chatops : $+ $1- }
    on *:input:@globops:{ globops $1- }
    on *:input:@wallops:{ wallops $1- }
    on *:input:@locops:{ locops $1- }
    on *:input:@snotice:{ .quote $1- | echo -a $timestamp Raw :> $1- }
    #opswv2 end
    

Share This Page