# This is the CGI:IRC configuration file # A # is a comment, some lines are commented out and need to be enabled for that # function to work # Main configuation [config] # The defaults to use if no value is supplied and on the form default_server=paranormal.se default_port=6667 default_nick=Skugga??? default_name=CGI:IRC default_channels=#magi # The location of the scripts irc_script=nph-irc.cgi irc_form=form.cgi irc_userlist=userlist.cgi # The Javascript to scroll with scroll=window.scrollBy(0,1000) # The prefix for the location of temp. files tmpfile_prefix=/tmp/cgiirc- # Automatically delete stale files from the tmp dir autocleanup=1 # Used in ctcp version replies and as a default quit message version_string=[CGI:IRC 0.3.4] # Used at the begining of client output echo_string=*** # Returned in ctcp version replies url=http://cgiirc.sourceforge.net/ # The location of the images on your webserver imagepath=/member/chat/frames/html/images/ # The location of the html files (help.html and about.html) on your webserver htmlpath=/member/chat/frames/html/ # The main logo image (has the imagepath above appended to it) image=cgiirc.gif # Amount of seconds between responses to ctcp requests floodtime=2 # Default usermode default_mode=+iw # Default Style to use (see the style section below) default_style=para # Use encoded IPs (in realname) encoded_ips=1 # File with list of ips that access is allowed / denied to (see the file for # examples) ip_access=ipaccess # Referer checking, 0 = none, 1 = check after login, 2 = check on all (login # form and main) referer=0 # Enable the ident server (requires root access), 1 uses the nickname as the # ident, 2 uses an encoded IP to make banning a user much easier ident=0 # The file to store the ident information in, must be the same in the ident # server ident_file=/tmp/ident # IP address of vhost to use (not hostname), leave commented out to use # default IP #vhost=0.0.0.0 # Form redirect, set this if you want to use a static page as the login form # (leave it commented out if you don't) #form_redirect=http://cgiirc.sourceforge.net/launch.html # Welcome message (printed as the first thing when CGI:IRC is loaded) welcome=Welcome to CGI:IRC 0.3.4 # The following access rules allow access to everything (the ones at the bottom # of each section), they are standard perl regular expressions (regexs) so if # you know them you should be fine but the examples provide plenty of # infomation for basic rules. # Only one regex for each access area may be defined (ie. only one, # access_channels, access_servers and access_commands) # ! at the start does the oppersite matching of the regex # Access Channels, this is a regex that shows the channels that entry is # allowed to or if prefixed with an ! channels that access is disallowed to # Also be aware that the QUOTE command must be disabled for this to work (see # the access commands section) # Examples: # Allow access to the #chat channel only #access_channels=#chat # Allow only the #chat and #other channels #access_channels=(#chat|#other) # Disallow access to the #admins channel #access_channels=!#admins # Allow ALL: access_channels=! # Access Servers, this is a regex that shows the servers that the client may # connect to # Examples: # Allow only access to irc.host.com #access_servers=irc.host.com # Disallow access to irc.wicked.net #access_servers=!irc.wicked.net # Allow ALL: access_servers=! # Access Commands, the commands that may be run # Examples: # To disable quoting (must be done for channel access controls to be fully # supported) #access_commands=!quote # Enable only /msg, /nick and /quit #access_commands=(msg|quit|nick) # Allow ALL: access_commands=! [styles] # The styles to use each is a hex colour sepearated by a colon, these are what # they mean: # bgcolor:text: client: enter: channel:server: mesg: action: ctcp: link: empubl:empublbg:publbracket:publbg:publ para=#fffff8:#000000:#0000ff:#0000ff:#0000ff:#ff0000:#ff0000:#999900:#00ff00:#0000ff light=#ffffff:#000000:#0000ff:#0000ff:#0000ff:#ff0000:#ff0000:#999900:#00ff00:#0000ff dark=#000000:#ffffff:#0000ff:#0000ff:#0000ff:#ff0000:#ff0000:#ffff00:#00ff00:#0000ff # -------------------------------------------------- # You shouldn't need to change anything below here # -------------------------------------------------- # The hex representation of the mirc colours [colours] 0=#FFFFFF 1=#000000 2=#0000FF 3=#008000 4=#FF0000 5=#800000 6=#800080 7=#FF6600 8=#FFFF00 9=#00FF00 00=#FFFFFF 01=#000000 02=#0000FF 03=#008000 04=#FF0000 05=#800000 06=#800080 07=#FF6600 08=#FFFF00 09=#00FF00 10=#008080 11=#00FFFF 12=#0000FF 13=#FF00FF 14=#808080 15=#C0C0C0 # The irc protocol hash [irc] PRIVMSG=irc_server_privmsg($bits[2],$text,$remote_nick); QUIT=prefixecho('enter','<--');html("$remote_nick ($text) lämnar chatten: $bits[2]",$colours{enter});irc_quit_handler($remote_nick,$text); PART=prefixecho('enter','<--');html("$remote_nick $remote_host lämnade $bits[2] ($text)", $colours{enter});irc_part_handler($remote_nick,$bits[2],$text); JOIN=prefixecho('enter','-->');html("$remote_nick $remote_host har gått med i $text",$colours{enter});irc_join_handler($remote_nick,$text); NICK=prefixecho('enter');html("$remote_nick går nu under aliaset $text",$colours{enter});irc_nick_handler($remote_nick,$text); KICK=prefixecho('enter');html("$remote_nick sparkade $bits[3] från kanalen $bits[2]: $text", $colours{enter});irc_kick_handler($remote_nick,$bits[3],$bits[2],$text); NOTICE=irc_notice_handler($remote_nick,$bits[2],$text); TOPIC=prefixecho('channel');html("$remote_nick har bestämt att ämnet för $bits[2] ska vara: $text",$colours{channel});irc_topic_handler($remote_nick,$bits[2],$text); MODE=eval("shift(\@bits);" x 2);prefixecho('channel');html("mode ".join(" ",(@bits,$text))." by $remote_nick", $colours{channel});irc_mode_handler(join(" ",(@bits,$text))); INVITE=prefixecho('channel');html("$remote_nick invites you to $text, type /j $text to join", $colours{channel});irc_invite_handler($remote_nick,$text); WALLOPS=html("!$remote_nick:*! $text"); PONG:1 401=prefixecho;html("$bits[3]: $text"); 402=prefixecho;html("$bits[3]: $text"); 403=prefixecho;html("$bits[3]: $text"); 404=prefixecho;html("$bits[3]: $text"); 405=prefixecho;html("$bits[3]: $text"); 406=prefixecho;html("$bits[3]: $text"); 407=prefixecho;html("$bits[3]: $text"); 409=prefixecho;html("$text"); 411=prefixecho;html("$text"); 412=prefixecho;html("$text"); 413=prefixecho;html("$bits[3]: $text"); 414=prefixecho;html("$bits[3]: $text"); 421=prefixecho;html("$bits[3]: $text"); 422=prefixecho;html("$bits[3]: $text"); 423=prefixecho;html("$bits[3]: $text"); 431=prefixecho;html("$bits[3]: $text"); 432=prefixecho;html("$bits[3]: $text"); 433=irc_nicknameinuse_handler( $bits[3] ); 436=prefixecho;html("$bits[3]: $text"); 441=prefixecho;html("$bits[3]:$bits[3] $text"); 442=prefixecho;html("$bits[3]: $text"); 443=prefixecho;html("$bits[3]:$bits[3] $text"); 444=prefixecho;html("$bits[3]: $text"); 445=prefixecho;html("$text"); 446=prefixecho;html("$text"); 451=prefixecho;html("$text"); 461=prefixecho;html("$bits[3]: $text"); 462=prefixecho;html("$text"); 463=prefixecho;html("$text"); 464=prefixecho;html("$text"); 465=prefixecho;html("$text"); 467=prefixecho;html("$bits[3]: $text"); 471=prefixecho;html("$bits[3]: $text"); 472=prefixecho;html("$bits[3]: $text"); 473=prefixecho;html("$bits[3]: $text"); 474=prefixecho;html("$bits[3]: $text"); 475=prefixecho;html("$bits[3]: $text"); 481=prefixecho;html("$bits[3]: $text"); 482=prefixecho;html("$bits[3]: $text"); 483=prefixecho;html("$text"); 491=prefixecho;html("$text"); 501=prefixecho;html("$text"); 502=prefixecho;html("$text"); 332=prefixecho;html("Ämnet för $bits[3] är: $text");irc_topic_handler(undef,$bits[3],$text); 333=prefixecho;html("Bestämt av $bits[4] vid ".localtime($bits[5])); 335=prefixecho;html("$text");&user_add($bits[4],split(/ /,$text)); 353=prefixecho;html("$text");&user_add($bits[4],split(/ /,$text)); 336=1 366=1 300=prefixecho;html("Nothing happened"); 301=prefixecho;html("$bits[3] $text"); 302=$text=~/(\S+)=.(.*)/;html("$config{echo_string} $1 is $2"); 303=prefixecho;html("Currently online: $text"); 305=prefixecho;html("$text"); 306=prefixecho;html("$text"); 311=prefixecho;html("$bits[3] ($bits[4]\@$bits[5])");html("*** ircname: $text"); 312=prefixecho;html("server: $bits[4] ($text)"); 313=prefixecho;html("operator: $bits[3] ($text)"); 314=prefixecho;html("was: $bits[3]!$bits[4]\@$bits[5] ($text)"); 317=prefixecho;html("idle: $bits[4] secs (signon: ".localtime($bits[5]).")"); 318=1 369=1 315=1 352=prefixecho;html("$bits[3] $bits[8] $bits[7]!$bits[4]\@$bits[5] $bits[6] ($text)"); 319=prefixecho;html("channels: $text"); 321=prefixecho;html("Channel List: Users: Topic"); 322=prefixecho;html("$bits[3] $bits[4] $text"); 323=1 265=prefixecho;html("$text", $colours{server}); 266=prefixecho;html("$text", $colours{server}); 001=prefixecho;html("$text", $colours{server});irc_connect_ok($bits[2],$bits[0]); 002=prefixecho;html("$text", $colours{server}); 003=prefixecho;html("$text", $colours{server}); 004=prefixecho;html("$text", $colours{server}); 251=prefixecho;html("$text", $colours{server}); 252=prefixecho;html("$bits[3] $text", $colours{server}); 254=prefixecho;html("$bits[3] $text", $colours{server}); 255=prefixecho;html("$text", $colours{server}); 375=prefixecho;html("$text", $colours{server}); 372=prefixecho;html("$text", $colours{server}); 376=1