mIRC Homepage
Posted By: Garou Info on time ban - 24/09/06 01:15 PM
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.
Posted By: raZOR Re: Info on time ban - 24/09/06 01:26 PM
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
}

 
Posted By: Garou Re: Info on time ban - 24/09/06 01:32 PM
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 ??
Posted By: raZOR Re: Info on time ban - 24/09/06 01:42 PM
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
Posted By: Garou Re: Info on time ban - 24/09/06 01:46 PM
Cool that does trigger it but I dont want to see the whole banlist just the real time ban set :P
Posted By: hixxy Re: Info on time ban - 24/09/06 01:49 PM
$ibl().date/ctime is probably what you're after. Look at /help $ibl
Posted By: Garou Re: Info on time ban - 24/09/06 01:52 PM
Because right now its doing a who everytime a ban is set instaed of just adding the ban accuring.
© mIRC Discussion Forums