Skip to content

Commit

Permalink
feat: stop showing (Unknown) channel? messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pridit committed Mar 8, 2024
1 parent 5f62f3d commit 27ffcfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/modules/z-bot-be-rcon/bercon.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ class ZBotBERcon
case (message.startsWith('Verified GUID')):
disableShow = true;
break;
case (message.startsWith('(Unknown)')):
disableShow = true;
break;
case (message.startsWith('Player #') || message.startsWith('Verified GUID') ):
if(message.endsWith('disconnected') || message.includes('has been kicked')) {
styledMessage = '```diff\n- ' + styledMessage + '\n```';
Expand Down

0 comments on commit 27ffcfc

Please sign in to comment.