]> git.donarmstrong.com Git - infobot.git/commitdiff
* Updated BUGS list
authordjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 20 Oct 2007 00:20:39 +0000 (00:20 +0000)
committerdjmcgrath <djmcgrath@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 20 Oct 2007 00:20:39 +0000 (00:20 +0000)
* SQL table fix, channel size should 30 chars max (db table backup/drop/recreate/restore needed)
* New USAGE and FAQ file to help new users (location/filenames/format may change)

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1587 c11ca15a-4712-0410-83d8-924469b57eb5

23 files changed:
BUGS
FAQ [new file with mode: 0644]
USAGE [new file with mode: 0644]
setup/mysql/news.sql
setup/mysql/onjoin.sql
setup/mysql/rootwarn.sql
setup/mysql/seen.sql
setup/mysql/stats.sql
setup/pgsql/news.sql
setup/pgsql/onjoin.sql
setup/pgsql/rootwarn.sql
setup/pgsql/seen.sql
setup/pgsql/stats.sql
setup/sqlite/news.sql
setup/sqlite/onjoin.sql
setup/sqlite/rootwarn.sql
setup/sqlite/seen.sql
setup/sqlite/stats.sql
setup/sqlite2/news.sql
setup/sqlite2/onjoin.sql
setup/sqlite2/rootwarn.sql
setup/sqlite2/seen.sql
setup/sqlite2/stats.sql

diff --git a/BUGS b/BUGS
index 85389ceb8cb9b1bcb155e9a7b2a3a003002a2cea..e7c09440a3fea807c107a8b352ff4576a8fa5e82 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -1,7 +1,5 @@
 Known bugs that should be dealt with soon as possible:
 
-       * "+sed" can currently be used to flood the boot off the network. Disable for now
-       * allows adding a "cmd:foo (.*)" factoid but not removing it (not sure if this still applies)
        * Older CMD: foo's cannot be used or removed. Must be removed manually from the database with SQL
        * !+topic list gives and incorrect error Failed. "You (#botpark) are not in #botpark, hey?"
        * Bot tries to ask chanserv for OP's on any channel. Should be a chanset setting on a per channel basis
@@ -9,3 +7,4 @@ Known bugs that should be dealt with soon as possible:
        * bot doesnt seem to keep track of stat counters for "heh :) ...etc". Might be settings though and not a bug
        * !help has size issues. Add's extra lines with only 1 or 2 help commands instead of one maximum size IRC msg
        * FIXME: !WARN! ircCheck: we have a NULL chan in hash channels? removing!
+       * Bot can be flooded offline with a crash if !+factstats help and /msg nick factstats help, are used at the same time
diff --git a/FAQ b/FAQ
new file mode 100644 (file)
index 0000000..37f4cf2
--- /dev/null
+++ b/FAQ
@@ -0,0 +1,34 @@
+# $Id$
+
+Q: The bot exits after I run 'factstats testing' or 'kernel' or anything
+   that uses fork(). Is this a bug in the bot?
+
+A: No, this is not a bug in the bot but rather Net::IRC.  A cheap hack is
+   to edit /usr/lib/perl5/Net/IRC/Connection.pm, search for DESTROY, and
+   comment out '$self->quit();'
+A: Apply the patches in the patches/ directory.
+
+
+Q: I notice that, in the bot logs, the bot attempts to close all current
+   DCC CHAT connections whenever a forked process ends. Why is this?
+
+A: Yet another bug in Net::IRC. Currently, DCC CHAT connections are not
+   closed because there is an endless-loop bug when it is done.
+
+
+Q: I executed 'scripts/setup_user.pl' but it said 'connection refused to
+   localhost'
+
+A: Looks like a bug in the installation of mysqld. You need to reload or
+   restart the daemon.
+       reload => 'mysqladmin -u root -p reload'
+       restart => '/etc/init.d/mysql stop; /etc/init.d/mysql start'
+
+Q: How do I get my bot to automatically ask for OP's from chanserv?
+
+A: By default, the "chanServCheck" option is off in _default. You can
+   set it on a per channel basis or as default. For example, the following
+   commands will enable asking for OP by default, except on #notmychannel
+
+       chanset _default chanServCheck 1
+       chanset #notmychannel chanServCheck 0
diff --git a/USAGE b/USAGE
new file mode 100644 (file)
index 0000000..02b60ef
--- /dev/null
+++ b/USAGE
@@ -0,0 +1,779 @@
+# $Id$
+
+############
+# EXAMPLES #
+############
+
+DCC CHAT:
+.+chan #chan
+.chanset #chan +autojoin
+.chanset +autojoin
+.chanunset -autojoin
+.chanset -autojoin
+
+for list of configuration options, run:
+        ./scripts/findparam.pl
+
+
+=====
+<me> blootbot: test is testing
+<blootbot> me: okay
+<me> blootbot: testing?
+<blootbot> testing is testing
+
+<me> blootbot: tests is <REPLY> testing
+<blootbot> me: okay
+<me> blootbot: tests?
+<blootbot> testing
+
+<me> blootbot: cough is <ACTION> coughs
+<blootbot> me: okay
+<me> blootbot: cough
+* blootbot/#blootbot coughs
+
+<me> blootbot: test is <REPLY> What's (one|two|three|four|five|six)
+       times (seven|eight|nine|ten|eleven|twelve)?
+<blootbot> okay, me
+<me> blootbot: test
+<blootbot> What's four times nine?
+<me> blootbot: test?
+<blootbot> What's six times ten?
+
+<me> blootbot: op me is <ACTION> Mode change "+o $nick" on channel
+       $channel by $ident
+<blootbot> me: okay
+<me> blootbot: op me
+* blootbot/#debian-bots Mode change "+o me" on channel #blootbot by
+       blootbot
+
+<me> blootbot: no who am i is <REPLY> You are $nick!$user@$host on
+       $channel.
+<blootbot> okay, me
+<me> blootbot: who am i
+<blootbot> You are me!me@home.org on #blootbot.
+
+<me> blootbot: who last spoke is <REPLY> To my knowledge, $lastspeaker
+       was the last to say something worthwhile.
+<blootbot> me: okay
+<me> blootbot: who last spoke
+<blootbot> To my knowledge, me was the last to say something worthwhile.
+
+<me> blootbot: percentage is <REPLY> you are $randpercentage% lame
+<blootbot> me: okay
+<me> blootbot: percentage
+<blootbot> you are 79% lame
+
+<me> blootbot: slap $1 is <action> slaps $1
+<blootbot> me: okay, me
+<me> blootbot: slap Bob
+ * blootbot slaps Bob
+<me> blootbot: forget cmd: slap (.*?)
+<blootbot> me: i forgot cmd: slap (.*?)
+
+
+#################
+# USER COMMANDS #
+#################
+
+Command: 4op
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       4op ...
+
+Example:
+       ...
+
+
+Command: dumpvars
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       dumpvars ...
+
+Example:
+       ...
+
+
+Command: kick
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       kick ...
+
+Example:
+       ...
+
+
+Command: ignore
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       ignore ...
+
+Example:
+       ...
+
+
+Command: ignorelist
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       ignorelist ...
+
+Example:
+       ...
+
+
+Command: unignore
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       unignore ...
+
+Example:
+       ...
+
+
+Command: clear ignorelist
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       clear ignorelist ...
+
+Example:
+       ...
+
+
+Command: lobotomy
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       lobotomy ...
+
+Example:
+       ...
+
+
+Command: unlobotomy
+=============
+Description:
+       ...
+
+Usage:
+       unlobotomy ...
+
+Example:
+       ...
+
+
+Command: op
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       op ...
+
+Example:
+       ...
+
+
+Command: say
+=============
+Description:
+       ...
+
+Usage: REQUIRES +o flag.
+       say ...
+
+Example:
+       ...
+
+
+Command: die
+=============
+Description:
+       ...
+
+Usage: REQUIRES +n flag.
+       die ...
+
+Example:
+       ...
+
+
+Command: jump
+=============
+Description:
+       ...
+
+Usage: REQUIRES +n flag.
+       jump ...
+
+Example:
+       ...
+
+
+Command: rehash
+=============
+Description:
+       ...
+
+Usage: REQUIRES +n flag.
+       rehash ...
+
+Example:
+       ...
+
+
+Command: set
+=============
+Description:
+       ...
+
+Usage: REQUIRES +n flag.
+       set ...
+
+Example:
+       ...
+
+
+Command: unset
+=============
+Description:
+       ...
+
+Usage: REQUIRES +n flag.
+       unset ...
+
+Example:
+       ...
+
+
+Command: chanstats
+=============
+Description:
+       Channel statistics is gathered while the bot is operation in those
+       channels it is located. They include: join, part, kick, ban, and
+       countless others.
+
+Usage:
+       chanstats [#channel]
+
+Example:
+       > blootbot: chanstats
+       <blootbot> i am on 2 channels: #blootbot #debian
+       <blootbot> i've cached 5 users distributed over 2 channels.     
+
+       > blootbot: chanstats #blootbot
+       <blootbot> On #blootbot, there have been 1 Join, 1 Op and 20
+               PublicMsgs.
+       <blootbot> At the moment, 3 Opped and 3 Total.
+
+
+Command: cmdstats
+=============
+Description:
+       ...
+
+Usage:
+       cmdstats ...
+
+Example:
+       ...
+
+
+Command: crypt
+=============
+Description:
+       ...
+
+Usage:
+       crypt ...
+
+Example:
+       ...
+
+
+Command: factinfo
+=============
+Description:
+       ...
+
+Usage:
+       factinfo ...
+
+Example:
+       ...
+
+
+Command: factstats
+=============
+Description:
+       ...
+
+Usage:
+       factstats ...
+
+Example:
+       ...
+
+
+Command: karma
+=============
+Description:
+       ...
+
+Usage:
+       karma ...
+
+Example:
+       ...
+
+
+Command: spell
+=============
+Description:
+       ...
+
+Usage:
+       spell ...
+
+Example:
+       ...
+
+
+Command: nslookup
+=============
+Description:
+       ...
+
+Usage:
+       nslookup ...
+
+Example:
+       ...
+
+
+Command: part
+=============
+Description:
+       ...
+
+Usage:
+       part ...
+
+Example:
+       ...
+
+
+Command: rot13
+=============
+Description:
+       ...
+
+Usage:
+       rot13 ...
+
+Example:
+       ...
+
+
+Command: wantNick
+=============
+Description:
+       ...
+
+Usage:
+       wantNick ...
+
+Example:
+       ...
+
+
+Command: join
+=============
+Description:
+       The bot can be commanded to join a channel if it is not already on
+       there in the case of a kick/ban, invite only or invalid key to
+       name a few typical case scenarios.
+
+       The channels which the bot can join is governed by the
+       configuration parameter labelled 'join_channels'. However, this
+       is ignored for those users with the +o flag in the user table.
+
+Usage:
+       join <#channel>[,key]
+
+Example:
+       > blootbot: join #blootbot
+       [blootbot] joining #blootbot
+       *** join/#debian blootbot (xk@router.home.org)
+       > blootbot: join #blootbot
+       [blootbot] I'm already on #blootbot...
+
+
+
+                    ======================================
+                               MODULE COMMANDS
+                    ======================================
+
+Command: babelfish
+=============
+Description:
+       ...
+
+Usage:
+       x from [language]: phrase
+
+Example:
+       ...
+
+
+Command: debian package
+=============
+Description:
+       ...
+
+Usage:
+       [] ...
+
+Example:
+       ...
+
+
+Command: dict
+=============
+Description:
+       ...
+
+Usage:
+       dict ...
+
+Example:
+       ...
+
+
+Command: freshmeat
+=============
+Description:
+       ...
+
+Usage:
+       freshmeat ...
+
+Example:
+       ...
+
+
+Command: google
+=============
+Description:
+       ...
+
+Usage:
+       google ...
+
+Example: DOES NOT WORK YET(??)
+       ...
+
+
+Command: insult
+=============
+Description:
+       ...
+
+Usage:
+       insult ...
+
+Example:
+       ...
+
+
+Command: kernel
+=============
+Description:
+       ...
+
+Usage:
+       kernel ...
+
+Example:
+       ...
+
+
+Command: lart
+=============
+Description:
+       ...
+
+Usage:
+       lart ...
+
+Example:
+       ...
+
+
+Command: list{keys|vals}
+=============
+Description:
+       ...
+
+Usage:
+       list{keys|vals} ...
+
+Example:
+       ...
+
+
+Command: nickometer
+=============
+Description:
+       ...
+
+Usage:
+       nickometer ...
+
+Example:
+       ...
+
+
+Command: quotes
+=============
+Description:
+       ...
+
+Usage:
+       quotes ...
+
+Example:
+       ...
+
+
+Command: rootwarn
+=============
+Description:
+       ...
+
+Usage:
+       rootwarn ...
+
+Example:
+       ...
+
+
+Command: seen
+=============
+Description:
+       ...
+
+Usage:
+       seen ...
+
+Example:
+       ...
+
+
+Command: listauth
+=============
+Description:
+       ...
+
+Usage:
+       listauth ...
+
+Example:
+       ...
+
+
+Command: slashdot
+=============
+Description:
+       ...
+
+Usage:
+       slashdot ...
+
+Example:
+       ...
+
+
+Command: debian contents
+=============
+Description:
+       ...
+
+Usage:
+       debian ...
+
+Example:
+       ...
+
+
+Command: topic
+=============
+Description:
+       ...
+
+Usage:
+       topic ...
+
+Example:
+       ...
+
+
+Command: countdown
+=============
+Description:
+       ...
+
+Usage:
+       countdown ...
+
+Example:
+       ...
+
+
+Command: uptime
+=============
+Description:
+       ...
+
+Usage:
+       uptime ...
+
+Example:
+       ...
+
+
+Command: weather
+=============
+Description:
+       ...
+
+Usage:
+       weather ...
+
+Example: DOES NOT WORK
+       ...
+
+
+Command: whatis
+=============
+Description:
+       ...
+
+Usage:
+       whatis ...
+
+Example: DOES NOT WORK
+       ...
+
+
+
+##################################
+# MISCELLANEOUS/FACTOID COMMANDS #
+##################################
+
+Command: forget
+=============
+Description:
+       ...
+
+Usage:
+       forget ...
+
+Example:
+       ...
+
+
+Command: {un|}lock
+=============
+Description:
+       ...
+
+Usage:
+       {un|}lock ...
+
+Example:
+       ...
+
+
+Command: rename
+=============
+Description:
+       ...
+
+Usage:
+       rename ...
+
+Example:
+       ...
+
+
+Command: substitution
+=============
+Description:
+       ...
+
+Usage:
+       $factoid =~ s/from/to/
+       $factoid =~ s#te/st/#test#g
+
+Example:
+       ...
+
+
+Command: karma set
+=============
+Description:
+       ...
+
+Usage:
+       $nick++
+       $nick--
+
+Example:
+       blootbot++
+       infobot--
+
+
+Command: maths
+=============
+Description:
+       ...
+
+Usage:
+       2 + 2
+
+Example:
+       ...
+
+
+Command: tell
+=============
+Description:
+       ...
+
+Usage:
+       tell <nick> about <factoid>
+
+Example:
+       ...
index ebfb0e2f06dff67f549c5c9d2763bd32c83a14d9..274e656499ffe4d02915e5c9a46526c5f34c784b 100644 (file)
@@ -1,5 +1,5 @@
 CREATE TABLE news (
- channel VARCHAR(16) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  id INT UNSIGNED DEFAULT '0',
  key VARCHAR(16) NOT NULL,
  value TEXT NOT NULL, # limit to ~450 or so.
index 994cc5480c97af655d005beef7b3e26faa6b1d47..d3eb6d5760067b937e32ead1505d8d1bef45559d 100644 (file)
@@ -1,6 +1,6 @@
 CREATE TABLE onjoin (
        nick VARCHAR(20) NOT NULL,
-       channel VARCHAR(16) NOT NULL,
+       channel VARCHAR(30) NOT NULL,
        message VARCHAR(255) NOT NULL,
        modified_by VARCHAR(20) NOT NULL DEFAULT 'nobody',
        modified_time INT NOT NULL DEFAULT '0',
index afcee2c59afe343dc37f19a17fc57892724504f2..d3ea91282aa5aefa0d2c001166bd565c950e3e29 100644 (file)
@@ -3,6 +3,6 @@ CREATE TABLE rootwarn (
  attempt SMALLINT UNSIGNED,
  time INT NOT NULL,
  host VARCHAR(80) NOT NULL,
- channel VARCHAR(20) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  PRIMARY KEY (nick)
 );
index d920f79bc5230843719147a5e59ab7b381c567e9..339803808448342c69dd965d025137f02add30b4 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE seen (
  nick VARCHAR(20) NOT NULL,
  time INT NOT NULL,
- channel VARCHAR(20) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  host VARCHAR(80) NOT NULL,
  message TINYTEXT NOT NULL,
  PRIMARY KEY (nick,channel)
index 97f773c96682d52cd24440c18c5f83cf2dda82b7..d738dc0d46b8c742a27bc6b54c113d74553235c0 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE stats (
  nick VARCHAR(20) NOT NULL,
  type VARCHAR(8) NOT NULL,
- channel VARCHAR(16) NOT NULL DEFAULT "PRIVATE",
+ channel VARCHAR(30) NOT NULL DEFAULT "PRIVATE",
  time INT UNSIGNED DEFAULT 'UNIX_TIMESTAMP()',
  counter SMALLINT UNSIGNED DEFAULT '0',
  PRIMARY KEY (nick,type,channel)
index 2924c61ead9dc4415e5f11ec43500f47e5b8331e..585785e634e99b5f8e65cee6f5b87c76c22c2ccf 100644 (file)
@@ -1,5 +1,5 @@
 CREATE TABLE news (
-    channel VARCHAR(16) NOT NULL,
+    channel VARCHAR(30) NOT NULL,
     id numeric DEFAULT 0 NOT NULL,
     "key" VARCHAR(16) NOT NULL,
     value text NOT NULL
index 2e7ed755fafde8b18403c3b898b3ee0ba84742e7..c590d1d17b984e306e2924b83d9f592954914f70 100644 (file)
@@ -1,6 +1,6 @@
 CREATE TABLE onjoin (
     nick VARCHAR(20) NOT NULL,
-    channel VARCHAR(16) NOT NULL,
+    channel VARCHAR(30) NOT NULL,
     message VARCHAR(255) NOT NULL,
     modified_by VARCHAR(20) DEFAULT 'nobody' NOT NULL,
     modified_time numeric DEFAULT 0 NOT NULL
index 6a843d849fca57aa0ef0282b892a98bfd4c60f95..41260b7a36e251da50c2444ad3f8748ff65ceaf9 100644 (file)
@@ -3,7 +3,7 @@ CREATE TABLE rootwarn (
     attempt numeric,
     "time" numeric NOT NULL,
     host VARCHAR(80) NOT NULL,
-    channel VARCHAR(20) NOT NULL
+    channel VARCHAR(30) NOT NULL
 ) WITHOUT OIDS;
 
 REVOKE ALL ON TABLE rootwarn FROM PUBLIC;
index 550f5bfc8489db0fac8aff878faa59424ca1815c..8cf6cd15ba844901e8e0f962587b05e63a64f68d 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE seen (
     nick VARCHAR(20) NOT NULL,
     "time" numeric NOT NULL,
-    channel VARCHAR(20) NOT NULL,
+    channel VARCHAR(30) NOT NULL,
     host VARCHAR(80) NOT NULL,
     message text NOT NULL,
     hehcount numeric DEFAULT 0 NOT NULL,
index 4af863d8b5f564457eecf27cb9883c1ee831e306..1ecd66ffc7b7f89b2ec4bee00647495fa5d80659 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE stats (
     nick VARCHAR(20) NOT NULL,
     "type" VARCHAR(8) NOT NULL,
-    channel VARCHAR(16) DEFAULT 'PRIVATE' NOT NULL,
+    channel VARCHAR(30) DEFAULT 'PRIVATE' NOT NULL,
     "time" numeric DEFAULT 0 NOT NULL,
     counter numeric DEFAULT 0
 ) WITHOUT OIDS;
index ebfb0e2f06dff67f549c5c9d2763bd32c83a14d9..274e656499ffe4d02915e5c9a46526c5f34c784b 100644 (file)
@@ -1,5 +1,5 @@
 CREATE TABLE news (
- channel VARCHAR(16) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  id INT UNSIGNED DEFAULT '0',
  key VARCHAR(16) NOT NULL,
  value TEXT NOT NULL, # limit to ~450 or so.
index 994cc5480c97af655d005beef7b3e26faa6b1d47..d3eb6d5760067b937e32ead1505d8d1bef45559d 100644 (file)
@@ -1,6 +1,6 @@
 CREATE TABLE onjoin (
        nick VARCHAR(20) NOT NULL,
-       channel VARCHAR(16) NOT NULL,
+       channel VARCHAR(30) NOT NULL,
        message VARCHAR(255) NOT NULL,
        modified_by VARCHAR(20) NOT NULL DEFAULT 'nobody',
        modified_time INT NOT NULL DEFAULT '0',
index afcee2c59afe343dc37f19a17fc57892724504f2..d3ea91282aa5aefa0d2c001166bd565c950e3e29 100644 (file)
@@ -3,6 +3,6 @@ CREATE TABLE rootwarn (
  attempt SMALLINT UNSIGNED,
  time INT NOT NULL,
  host VARCHAR(80) NOT NULL,
- channel VARCHAR(20) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  PRIMARY KEY (nick)
 );
index d920f79bc5230843719147a5e59ab7b381c567e9..339803808448342c69dd965d025137f02add30b4 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE seen (
  nick VARCHAR(20) NOT NULL,
  time INT NOT NULL,
- channel VARCHAR(20) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  host VARCHAR(80) NOT NULL,
  message TINYTEXT NOT NULL,
  PRIMARY KEY (nick,channel)
index 97f773c96682d52cd24440c18c5f83cf2dda82b7..d738dc0d46b8c742a27bc6b54c113d74553235c0 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE stats (
  nick VARCHAR(20) NOT NULL,
  type VARCHAR(8) NOT NULL,
- channel VARCHAR(16) NOT NULL DEFAULT "PRIVATE",
+ channel VARCHAR(30) NOT NULL DEFAULT "PRIVATE",
  time INT UNSIGNED DEFAULT 'UNIX_TIMESTAMP()',
  counter SMALLINT UNSIGNED DEFAULT '0',
  PRIMARY KEY (nick,type,channel)
index ebfb0e2f06dff67f549c5c9d2763bd32c83a14d9..274e656499ffe4d02915e5c9a46526c5f34c784b 100644 (file)
@@ -1,5 +1,5 @@
 CREATE TABLE news (
- channel VARCHAR(16) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  id INT UNSIGNED DEFAULT '0',
  key VARCHAR(16) NOT NULL,
  value TEXT NOT NULL, # limit to ~450 or so.
index 994cc5480c97af655d005beef7b3e26faa6b1d47..d3eb6d5760067b937e32ead1505d8d1bef45559d 100644 (file)
@@ -1,6 +1,6 @@
 CREATE TABLE onjoin (
        nick VARCHAR(20) NOT NULL,
-       channel VARCHAR(16) NOT NULL,
+       channel VARCHAR(30) NOT NULL,
        message VARCHAR(255) NOT NULL,
        modified_by VARCHAR(20) NOT NULL DEFAULT 'nobody',
        modified_time INT NOT NULL DEFAULT '0',
index afcee2c59afe343dc37f19a17fc57892724504f2..d3ea91282aa5aefa0d2c001166bd565c950e3e29 100644 (file)
@@ -3,6 +3,6 @@ CREATE TABLE rootwarn (
  attempt SMALLINT UNSIGNED,
  time INT NOT NULL,
  host VARCHAR(80) NOT NULL,
- channel VARCHAR(20) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  PRIMARY KEY (nick)
 );
index d920f79bc5230843719147a5e59ab7b381c567e9..339803808448342c69dd965d025137f02add30b4 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE seen (
  nick VARCHAR(20) NOT NULL,
  time INT NOT NULL,
- channel VARCHAR(20) NOT NULL,
+ channel VARCHAR(30) NOT NULL,
  host VARCHAR(80) NOT NULL,
  message TINYTEXT NOT NULL,
  PRIMARY KEY (nick,channel)
index 97f773c96682d52cd24440c18c5f83cf2dda82b7..d738dc0d46b8c742a27bc6b54c113d74553235c0 100644 (file)
@@ -1,7 +1,7 @@
 CREATE TABLE stats (
  nick VARCHAR(20) NOT NULL,
  type VARCHAR(8) NOT NULL,
- channel VARCHAR(16) NOT NULL DEFAULT "PRIVATE",
+ channel VARCHAR(30) NOT NULL DEFAULT "PRIVATE",
  time INT UNSIGNED DEFAULT 'UNIX_TIMESTAMP()',
  counter SMALLINT UNSIGNED DEFAULT '0',
  PRIMARY KEY (nick,type,channel)