mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
(Update) IRC Announce Message Format
This commit is contained in:
@@ -326,9 +326,13 @@ class TorrentController extends Controller
|
||||
$bot = new IRCAnnounceBot();
|
||||
if (config('irc-bot.enabled') == true) {
|
||||
if ($torrent->anon == 0) {
|
||||
$bot->message("#announce", "User " . $user->username . " has uploaded " . $torrent->name . " grab it now!");
|
||||
$bot->message("#announce", "["config('app.name')"] User " . $user->username . " has uploaded " . $torrent->name . " grab it now!");
|
||||
$bot->message("#announce", "[Category:" . $torrent->category->name . "]" "[Type:" . $torrent->type . "]" "[Size:" . $torrent->getSize() . "]");
|
||||
$bot->message("#announce", "[Link: {$appurl}/torrents/" . $torrent->slug . "." . $torrent->id "]");
|
||||
} else {
|
||||
$bot->message("#announce", "An anonymous user has uploaded " . $torrent->name . " grab it now!");
|
||||
$bot->message("#announce", "["config('app.name')"] An anonymous user has uploaded " . $torrent->name . " grab it now!");
|
||||
$bot->message("#announce", "[Category:" . $torrent->category->name . "]" "[Type:" . $torrent->type . "]" "[Size:" . $torrent->getSize() . "]");
|
||||
$bot->message("#announce", "[Link: {$appurl}/torrents/" . $torrent->slug . "." . $torrent->id "]");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user