Made slog() saner.

This commit is contained in:
Elijah Perrault committed 2011-04-04 15:31:30 -06:00
1 parent ce8ef76363
commit e868892f51
2 files changed
+4

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev 3.0 Indev
=============================================================================== ===============================================================================
* Made slog() saner.
* Syntax for mod_init() changed. Package name is no longer required. * Syntax for mod_init() changed. Package name is no longer required.
* Added German translation to Greet help hash. - nridley * Added German translation to Greet help hash. - nridley
* Added German translation to FML help hash. - nridley * Added German translation to FML help hash. - nridley
+3
View File
@@ -113,6 +113,9 @@ sub slog
if (conf_get('logchan')) { if (conf_get('logchan')) {
# It is, continue. # It is, continue.
# Don't even bother with continuing if there are *NO* connections.
if (!keys %Auto::SOCKET) { return }
# Split the network and channel. # Split the network and channel.
my ($net, $chan) = split m/[\/]/xsm, (conf_get('logchan'))[0][0]; my ($net, $chan) = split m/[\/]/xsm, (conf_get('logchan'))[0][0];
$chan = lc $chan; $chan = lc $chan;