Reindent code
[app-fonbot-daemon.git] / lib / App / FonBot / Plugin / OFTC.pm
index 12b88cf655267b1e28863a3353d2f186190708ec..b41fbd945063f86eaec772ec6a9aa1a85b736dd1 100644 (file)
@@ -18,30 +18,30 @@ use App::FonBot::Plugin::Config qw/$oftc_enabled $oftc_nick @oftc_channels $oftc
 ##################################################
 
 sub _start{
-  return unless $oftc_enabled;
-  my $self=$_[OBJECT];
-
-  $self->{irc} = POE::Component::IRC->spawn(
-       Nick => $oftc_nick,
-       Username => $oftc_nick,
-       Ircname => 'FonBot OFTC Transport',
-       Server => 'irc.oftc.net',
-       Port => 6697,
-       UseSSL => 1,
-  );
-  $self->{irc}->yield(register => qw/msg/);
-  $self->{irc}->yield(connect => {});
-
-  $self->{irc}->plugin_add(Connector => POE::Component::IRC::Plugin::Connector->new);
-  $self->{irc}->plugin_add(AutoJoin => POE::Component::IRC::Plugin::AutoJoin->new(
-       Channels => \@oftc_channels
-  ));
-
-  $self->{irc}->plugin_add(NickServID => POE::Component::IRC::Plugin::NickServID->new(
-       Password => $oftc_nickserv_password
-  ));
-
-  $_[KERNEL]->alias_set('OFTC');
+       return unless $oftc_enabled;
+       my $self=$_[OBJECT];
+
+       $self->{irc} = POE::Component::IRC->spawn(
+               Nick => $oftc_nick,
+               Username => $oftc_nick,
+               Ircname => 'FonBot OFTC Transport',
+               Server => 'irc.oftc.net',
+               Port => 6697,
+               UseSSL => 1,
+       );
+       $self->{irc}->yield(register => qw/msg/);
+       $self->{irc}->yield(connect => {});
+
+       $self->{irc}->plugin_add(Connector => POE::Component::IRC::Plugin::Connector->new);
+       $self->{irc}->plugin_add(AutoJoin => POE::Component::IRC::Plugin::AutoJoin->new(
+               Channels => \@oftc_channels
+       ));
+
+       $self->{irc}->plugin_add(NickServID => POE::Component::IRC::Plugin::NickServID->new(
+               Password => $oftc_nickserv_password
+       ));
+
+       $_[KERNEL]->alias_set('OFTC');
 }
 
 1;
This page took 0.011779 seconds and 4 git commands to generate.