From: Anti V. <du...@us...> - 2004-03-30 20:48:47
|
Update of /cvsroot/tuxaator/tuxaator/Plugins/Talk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22387/Plugins/Talk Modified Files: Plugin.pm Log Message: + assorted fixes Index: Plugin.pm =================================================================== RCS file: /cvsroot/tuxaator/tuxaator/Plugins/Talk/Plugin.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Plugin.pm 21 Dec 2003 18:37:31 -0000 1.7 --- Plugin.pm 30 Mar 2004 20:37:06 -0000 1.8 *************** *** 2,6 **** # Talk plugin, allows trusted users to talk "through" the bots "mouth" package Talk; ! use DBI; sub new { --- 2,7 ---- # Talk plugin, allows trusted users to talk "through" the bots "mouth" package Talk; ! #use base qw(Tuxaator::Plugin); ! use Data::Dumper; sub new { *************** *** 11,14 **** --- 12,27 ---- }; + #my %config = $class->Tuxaator::Plugin::configure_plugin($class); + + + #my %config = configure_plugin($class); + + # see peaks tegelikult dependentsidega toimuma + #my %config = plugincore->configure_plugin($class); + + print "!!!"; + print $config{'kala'}; + print "!!!\n"; + bless $self, $class; } *************** *** 38,48 **** }; ! sub get_scheduled_handlers { ! my $class = shift; ! return ! { ! "60" => \&do_whoa, ! }; ! } # Says something to the channel --- 51,61 ---- }; ! #sub get_scheduled_handlers { ! # my $class = shift; ! # return ! # { ! # "60" => \&do_whoa, ! # }; ! #} # Says something to the channel *************** *** 133,135 **** --- 146,153 ---- } + # now . I need to put the configuration for this module into this directory + # and let only this module access it. So how do I do it? + + # do I need to include some kind of code at the start of this file? + 1; |