All pastes #752870 Raw Edit

Unnamed

public text v1 · immutable
#752870 ·published 2007-10-28 20:02 UTC
rendered paste body
proc pub:xaccess {nick uhost hand chan rest} {
  catch {
    if {$rest == ""} {
      set rest "$chan *"
    }
    putquick "PRIVMSG x :access $rest"
    putlog "Asking X for access on $target for $chan "
    set ::xaccessnick $nick
    set ::xaccesschan $chan
    return 0
   } foo
 if {$foo != 0} {putlog "Error in pub:xaccess! ($foo)"}
}