+# Command line args can override configuration.
+GetOptions ("nick=s" => \$nick,
+ "ircname=s" => \$ircname,
+ "server=s" => \$server,
+ "port=i" => \$port,
+ "channel=s" => \$channel)
+ or die "$0: GetOptions: $!";
+
+# Simple flood protection. This counts number of lines received from
+# the toplevel, and is reset when we send a line. If this exceeds
+# some value, then we just eat lines.
+# XXX This ought to count characters, not lines.
+my $flood_lim = 0;
+
+# Are we awake or sleeping?
+my $sleeping = 0;
+
+#----------------------------------------------------------------------
+