This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -Ku | |
require 'socket' | |
require 'logger' | |
LOG_PATH = '/var/log/fetch_dcc.log' | |
DCC_DIR = '/mnt/dcc' | |
(nick, address, port, size, filename) = ARGV | |
port = port.to_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------------- | |
# $Id$ | |
# ----------------------------------------------------------------------------- | |
# Auto fetch DCC SEND | |
# ----------------------------------------------------------------------------- | |
package CTCP::DCC::AutoFetch; | |
use strict; | |
use warnings; | |
use base qw(Module); | |
use Multicast; |