mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
fix: Chat related system announcement typos
This commit is contained in:
@@ -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').'!';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user