Public feed #894116

Stuff

public text v1 · immutable
Raw Edit
·published 2008-02-06 18:13 UTC
rendered paste body
on $*:TEXT:/^[@!]request/Si:#ZhukRadio,#ZhukIRC:{
  if ($2) {
    if (%dj) {
      if (!%req.timer. [ $+ [ $nick ] ]) {
        set -u60 %req.timer. [ $+ [ $nick ] ] :p
        var %prefix $iif(@* iswm $1,msg $chan,notice $nick)
        inc %requests
        %prefix 14[02Request14]: Thanks for the 02request14. The 02request14 has been forwarded to the current 02DJ14. This has been the02 $ord(%requests) 14request.
        msg %dj 14[02Request14]:02 $2- 14requested. Request by02 $nick $+ 14.
      }
      else { notice $nick 14[02Request14]: You can't make a request before 0260 seconds14 after your last request. }
    }
    else { notice $nick 14[02Request14]: There isn't a 02DJ14 here at the moment. }
  }
  else { notice $nick 14[02Request14]: You need to enter a request! }
}

on *:TEXT:!SetDJ *:#:{
  if ($nick isop #ZhukIRC || $nick ishop #ZhukIRC || $nick isop #ZhukRadio || $nick ishop #ZhukRadio) {
    if ($2 ison $chan) {
      msg $chan 14[02DJ14]: The 02DJ14 has been set to02 $2 $+ 14.
      set %dj $2
    }
    else { notice $nick 14[02DJ14]: The DJ has to be on the channel! }
  }
}

on *:NICK:{
  if ($nick == %dj) {
    msg #ZhukIRC 14[02DJ14]: The current02 DJ 14has changed their nick. The02 DJ 14is now set to02 $newnick $+ 14.
    msg #ZhukRadio 14[02DJ14]: The current02 DJ 14has changed their nick. The02 DJ 14is now set to02 $newnick $+ 14.
    set %dj $newnick
  }
}

on *:TEXT:!DelDJ:#:{
  if ($nick isop #ZhukIRC || $nick ishop #ZhukIRC || $nick isop #ZhukRadio || $nick ishop #ZhukRadio) {
    msg $chan 14[02DJ14]: The 02DJ14 has been unset.
    unset %dj
  }
}

on $*:TEXT:/^[!@.]D(ee)?J(ay)?/Si:#ZhukIRC,#ZhukRadio:{ 
  if (%dj) {
    var %prefix $iif(@* iswm $1,msg $chan,notice $nick)
    %prefix 14[02DJ14]: The current 02DJ14 is02 %dj $+ 10
  }
  else { notice $nick 14[02DJ14]: There isn't a 02DJ14 here at the moment. }
}

on *:QUIT:{
  if ($nick == %dj) {
    msg #ZhukIRC 14[02DJ14]: The current02 DJ 14has quit. The02 DJ 14is now unset.
    msg #ZhukRadio 14[02DJ14]: The current02 DJ 14has quit. The02 DJ 14is now unset.
    unset %dj
  }
}