fix: Chat related system announcement typos

This commit is contained in:
shlandturtle
2020-03-04 11:00:26 +00:00
parent d4787763d0
commit 9d32c0ba02
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -294,11 +294,11 @@ class NerdBot
{
$registrations = cache()->get('nerdbot-users');
if (!$registrations || $registrations == null) {
$users = User::where('created_at', '>', $this->current->subDay())->count();
cache()->put('nerdbot-users', $users, $this->expiresAt);
$registrations = User::where('created_at', '>', $this->current->subDay())->count();
cache()->put('nerdbot-users', $registrations, $this->expiresAt);
}
return sprintf('In The Last 24 Hours %s Users Have Registered To ', $users).config('other.title').'!';
return sprintf('In The Last 24 Hours %s Users Have Registered To ', $registrations).config('other.title').'!';
}
/**
+2 -2
View File
@@ -1556,13 +1556,13 @@ class TorrentController extends Controller
$torrent->free = '1';
$this->chat->systemMessage(
sprintf('Ladies and Gents, [url=%s]%s[/url] has been granted 100% FreeLeech! Grab It While You Can! :fire:', $torrent_url, $torrent->name)
sprintf('Ladies and Gents, [url=%s]%s[/url] has been granted 100%% FreeLeech! Grab It While You Can! :fire:', $torrent_url, $torrent->name)
);
} else {
$torrent->free = '0';
$this->chat->systemMessage(
sprintf('Ladies and Gents, [url=%s]%s[/url] has been revoked of its 100% FreeLeech! :poop:', $torrent_url, $torrent->name)
sprintf('Ladies and Gents, [url=%s]%s[/url] has been revoked of its 100%% FreeLeech! :poop:', $torrent_url, $torrent->name)
);
}