mIRC Home    About    Download    Register    News    Help

Print Thread
#174206 03/04/07 10:59 PM
Joined: Jan 2007
Posts: 18
K
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2007
Posts: 18
I have a window @clients where i see all the connection and quits in my server.
Is it possible or any idea how to check clents in @clients window for kill gline etc while connecting ? (check i mean clik nick hostmask etc f1 = kill reason.)

thanks

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The simple answer is yes, it is possible.

The more complicated answer, namely code that would allow you to do that, will take me a bit more time to come up with.

Joined: Mar 2007
Posts: 38
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Mar 2007
Posts: 38
Use on 1:SNOTICE:*:

Comparing (if (*connect* iswm $1-) and then using $gettok($ident for nick,2,64) get the address...

For example:

*** Client connecting: moby_24 (ircap8@200-127-66-203.host.net) ()>----this is the message...

Code:
on ^1:SNOTICE:*:{
if (*Client connecting* iswm $1-) {
  if ($check($4 $remove($gettok($5,2,64),$chr(41)))) { <------------(alias for checking) 
     kline $remove($gettok($5,2,64),$chr(41)) rason...
}
}
}



"if ($me ison $forum) { say Hello! }"
Joined: Jan 2007
Posts: 18
K
Pikka bird
OP Offline
Pikka bird
K
Joined: Jan 2007
Posts: 18
Well i use this code to move the clients from the status to xtra @window so i can see more clearly the connect and exiting clients..

That i want couse the code from dear HuMoR doesnt seem to work is if i can check like "main channel" lets say the nick from the connecting clients or exiting right click or /fkey kill etc reason instead of writing /kill name or ip etc.

i will recheck the code of Mr HuMoR

Code:
on 1*:SNOTICE:*client connecting*:{

  if (h isin $usermode) {
    window -kez1 @Clients
    if (%oper.server != $server) {
      set %oper.server $server
    }
    echo @Clients  $timestamp 3 $1- | haltdef
  }
}

;###################### Client Exiting

on 1*:SNOTICE:*Client exiting*:{

  if (h isin $usermode) {
    window -kez1 @Clients
    if (%oper.server != $server) {
      set %oper.server $server
    }
    echo @Clients  $timestamp 4 $1- | haltdef
  }
} 


Thanks a lot

Joined: Mar 2007
Posts: 38
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Mar 2007
Posts: 38
Sorry, my english its horrible, i dont understand what are you need... :s

Cya!.-


"if ($me ison $forum) { say Hello! }"

Link Copied to Clipboard