mIRC Home    About    Download    Register    News    Help

Print Thread
#160218 24/09/06 01:15 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Is it possible to see how long a ban was set by op in a private @window? That would give me exemple:
time, nick, ip, duration of the ban, and who set the ban.

#160219 24/09/06 01:26 PM
Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
this is what i have
maybe will help you :P

Code:
 
;Ban List
raw 367:*:{
 haltdef
  window -k +s @BanList 
  aline @BanList $2 Ban: $3
  aline @BanList Set by: $4 $duration($calc($ctime - $5)) ago.
  aline @BanList $chr(160)
  halt
}


raw 368:*:{
  haltdef
  window -k +s @BanList 
  aline @BanList $chr(160) 
  aline @BanList $2 End of Channel Ban List
  halt
}

 


IceCapped
#160220 24/09/06 01:32 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Ok it just open but can it show up in real time I mean when a ban is set I see it in the @banlist window ??

Last edited by Garou; 24/09/06 01:39 PM.
#160221 24/09/06 01:42 PM
Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
if you mean to show that window whenever someone is
banned then use ON BAN event and call banlist

ON *:BAN:#: { mode $chan +b }

this should trigger it


IceCapped
#160222 24/09/06 01:46 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Cool that does trigger it but I dont want to see the whole banlist just the real time ban set :P

#160223 24/09/06 01:49 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
$ibl().date/ctime is probably what you're after. Look at /help $ibl

#160224 24/09/06 01:52 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Because right now its doing a who everytime a ban is set instaed of just adding the ban accuring.


Link Copied to Clipboard