Abandoned-IRC
Adiirc: ZW Hotlinks - Printable Version

+- Abandoned-IRC (https://www.abandoned-irc.net)
+-- Forum: Abandoned-IRC (https://www.abandoned-irc.net/forumdisplay.php?fid=4)
+--- Forum: Scripting (https://www.abandoned-irc.net/forumdisplay.php?fid=11)
+--- Thread: Adiirc: ZW Hotlinks (/showthread.php?tid=17)



Adiirc: ZW Hotlinks - TheMorgue - 08-28-2023

; This is to double click the botname in ADIIRC to receive the file:
on *:HOTLINK:*Zombie-*:*:{
if ($hotlink(event) == dclick) {
  tokenize 32 $hotline
  var %a $strip($1-)
  ;New Release
  if ( $gettok(%a,12,32) == /msg ) { /msg $gettok(%a,13,32) xdcc send  $gettok(%a,16,32) }
  ;Search Response
    if ( $gettok(%a,8,32) == /msg ) { $remove($gettok(%a,8-,32),$Chr(41)) }
  }
}