Skip to content

Commit

Permalink
do not send osu! messages in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Shmiklak committed Jun 27, 2024
1 parent 7330878 commit d5fe26e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/Providers/IRCServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ class IRCServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton(IRCService::class, function ($app) {
$config = $app['config']['irc'];
return new IRCService(
$config['server'],
$config['port'],
$config['nickname'],
$config['password']
);
});
if (!env('APP_DEBUG')) {
$this->app->singleton(IRCService::class, function ($app) {
$config = $app['config']['irc'];
return new IRCService(
$config['server'],
$config['port'],
$config['nickname'],
$config['password']
);
});
}
}

public function boot()
Expand Down

0 comments on commit d5fe26e

Please sign in to comment.