Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 541ced4af0c5c56679c3d998acd9a032 > files > 186

eggdrop-1.6.18-5mdv2008.1.i586.rpm

$Id: mod.server,v 1.36 2006-03-28 02:35:49 wcc Exp $

Server Module
Last revised: February 12, 2003
    _____________________________________________________________________

                                Server Module


  This module provides the core server support. You have to load this if
  you want your bot to come on IRC. Not loading this is equivalent to the
  old NO_IRC define.

  This module requires: none

  Put this line into your Eggdrop configuration file to load the server
  module:

    loadmodule server

  There are also some variables you can set in your config file:

    set net-type 0
      What is your network?
        0 = EFnet
        1 = IRCnet
        2 = Undernet
        3 = DALnet
        4 = +e/+I/max-bans 20 Hybrid
        5 = Others


    set nick "LamestBot"
      Set the nick the bot uses on IRC, and on the botnet unless you specify a
      separate botnet-nick, here.


    set altnick "L?m?stB?t"
      Set the alternative nick which the bot uses on IRC if the nick specified
      by 'set nick' is unavailable. All '?' characters will be replaced by
      random numbers.


    set keep-nick 1
      This setting makes the bot try to get his original nickname back if its
      primary nickname is already in use.


    set realname "/msg LamestBot hello"
      Set here what to display in the real-name field for the bot.

    bind evnt - init-server evnt:init_server
    proc evnt:init_server {type} {
      global botnick
      putquick "MODE $botnick +i-ws"
    }
      This is a Tcl script to be run immediately after connecting to a server.


    set init-server { putquick "MODE $botnick +i-ws" }
      This is a Tcl script to be run immediately after connecting to a server.
      It is limited to 120 characters, and is depriciated due to the EVNT bind
      (see doc/tcl-commands.doc).


    set connect-server { putlog "Connecting to server." }
      This is a Tcl script to be run immediately before connecting to a server.
      It is limited to 120 characters, and is depriciated due to the EVNT bind
      (see doc/tcl-commands.doc).


    set disconnect-server { putlog "Disconnected from server." }
      This is a Tcl script to be run immediately after disconnecting from a
      server. It is limited to 120 characters, and is depriciated due to the
      EVNT bind (see doc/tcl-commands.doc).


    set servers {
      you.need.to.change.this:6667
      another.example.com:7000:password
    }
      This is the bot's server list. The bot will start at the first server
      listed, and cycle through them whenever it gets disconnected. You need
      to change these servers to YOUR network's servers.

      The format is:
        server[:port[:password]]

      Both the port and password fields are optional; however, if you want to
      set a password you must also set a port. If a port isn't specified it
      will default to your default-port setting.


    set default-port 6667
      Set the default port which should be used if none is specified with
      '.jump' or in 'set servers'.


    set server-cycle-wait 60
      This setting defines how long Eggdrop should wait before moving from one
      server to another on disconnect. If you set 0 here, Eggdrop will not wait
      at all and will connect instantly. Setting this too low could result in
      your bot being K:Lined.

    set never-give-up 1
      This settings makes the bot cycle forever through the server list until
      it successfully connects to one.


    set server-timeout 60
      Set here how long Eggdrop should wait for a response when connecting to
      a server before giving up and moving on to next server.


    set servlimit 0
      If the number of servers on the net gets below this number, the bot
      will jump to a new server (it will assume it's on the losing end of
      a netsplit). Set this to 0 to turn off. If your bot is running on
      any major IRC network, this should probably be turned off.


    set check-stoned 1
      Set this to 1 if Eggdrop should check for stoned servers? (where the
      server connection has died, but Eggdrop hasn't been notified yet).


    set serverror-quit 1
      If you want your bot to exit the server if it receives an ERROR message,
      set this to 1.


    set max-queue-msg 300
      Set here the maximum number of lines to queue to the server. If you're
      going to dump large chunks of text to people over IRC, you will probably
      want to raise this. 300 is fine for most people though.


    set strict-host 0
      Set this to 0 if you want the bot to strip '~' characters from user@hosts
      before matching them.


    set quiet-reject 1
      This setting makes the bot squelch the error message when rejecting a
      DCC CHAT, SEND or message command. Normally, Eggdrop notifies the user
      that the command has been rejected because they don't have access. Note
      that sometimes IRC server operators detect bots that way.


    set flood-msg 5:60
      Set here how many msgs in how many seconds from one host constitutes
      a flood. If you set this to 0:0, msg flood protection will be disabled.

    set flood-ctcp 3:60
      Set here how many ctcps in how many seconds from one host are
      recognized as a flood. Not specifying or using number = 0
      will not check against ctcp floods.


    set answer-ctcp 3
      Set how many ctcps should be answered at once here.


    set lowercase-ctcp 0
      If you want your bot to answer lower case ctcp requests (non rfc-
      compliant), set this setting to 1. mIRC will do this, most other
      clients will not.


    set trigger-on-ignore 0
      If you want Eggdrop to trigger binds for ignored users, set this to 1.


    set exclusive-binds 0
      This setting configures PUBM and MSGM binds to be exclusive of PUB
      and MSG binds. This means if a MSGM bind with the mask "*help*" exists
      and is triggered, any MSG bindings with "help" in their mask will not
      be triggered. Don't enable this unless you know what you are doing!


    set double-mode 0
      Allow identical messages in the mode queue?


    set double-server 0
      Allow identical messages in the server queue?


    set double-help 0
      Allow identical messages in the help queue?

    set use-penalties 1 (default on net-type 1)
      This enables Eggdrop's penalty calculation. Every command Eggdrop sends
      to the IRC server raises its penalty points. If Eggdrop reaches a server
      limit, it gets disconnected with "excess flood" message. Eggdrop is able
      to count internal those penalty points, too and take measures against
      excess flooding. Note: it's highly advised to turn this on!


    set optimize-kicks 1
      This optimizes the kick queue. It also traces nick changes and parts in
      the channel and changes the kick queue accordingly. There are three
      different options for this setting:
        0 = Turn it off.
        1 = Optimize the kick queue by summarizing kicks.
        2 = Trace nick changes and parts on the channel and change the queue
            accordingly. For example, bot will not try to kick users who have
            already parted the channel.
      ATTENTION: Setting 2 is very CPU intensive.


  There are more settings for 'net-type' 5.


  net-type 5 specific features:

  Attention: Use this settings *only* if you set 'net-type' to 5!

    set check-mode-r 1
      This settings defines how umode +r is understood by Eggdrop. Some
      networks use +r to indicate a restricted connection. If this is your
      case, and you want your bot to leave restricted servers and jump to
      the next server on its list, then set it to 1.
      Please note, this setting is automatically set to 0 for net-type 0/2/3/4,
      and set to 1 for net-type 1.


    set nick-len 9
      This setting allows you to specify the maximum nick-length supported by
      your network. The default setting is 9. The maximum supported length by
      Eggdrop is 32.

    _____________________________________________________________________

  Copyright (C) 2000 - 2006 Eggheads Development Team