Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV committed Oct 21, 2020
1 parent df80a71 commit b87ce3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/chat-plugins/the-studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,7 @@ export const commands: ChatCommands = {

addrec: 'addrecommendation',
addrecommendation(target, room, user) {
room = this.requireRoom();
Recs.checkRoom(room);
room = this.requireRoom('thestudio' as RoomID);
this.checkCan('show', null, room);
const [artist, title, url, description, ...tags] = target.split('|').map(x => x.trim());
if (!(artist && title && url && description && tags?.length)) {
Expand Down Expand Up @@ -455,8 +454,7 @@ export const commands: ChatCommands = {

suggestrec: 'suggestrecommendation',
async suggestrecommendation(target, room, user) {
room = this.requireRoom();
Recs.checkRoom(room);
room = this.requireRoom('thestudio' as RoomID);
if (!target) {
return this.parse('/help suggestrecommendation');
}
Expand Down

0 comments on commit b87ce3f

Please sign in to comment.