* Bug fixes.

* Added mod_exists() to API::Std.
* Added SASL support with modules/SASLAuth.
This commit is contained in:
Elijah Perrault committed 2011-01-30 15:55:41 -07:00
1 parent 234bb6a0cd
commit c5e0a9800c
5 files changed
+208 -1

No files matched your search

+9
View File
@@ -55,6 +55,15 @@ sub mod_init
}
}
# Check if a module exists.
sub mod_exists
{
my ($name) = @_;
return 1 if defined $MODULE{$name};
return 0;
}
# Void a module.
sub mod_void
{
+6
View File
@@ -57,6 +57,12 @@ sub ircparse
# send a PONG.
Auto::socksnd($svr, "PONG ".$ex[1]);
}
# If it's AUTHENTICATE
elsif ($ex[0] eq 'AUTHENTICATE') {
if (API::Std::mod_exists("SASLAuth")) {
m_SASLAuth::handle_authenticate($svr, @ex);
}
}
else {
# otherwise, check %RAWC for ex[1].
if (defined $RAWC{$ex[1]}) {