Skip to content

Commit

Permalink
log for #55
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Oct 21, 2016
1 parent 998efbb commit cd7c7dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ export class Room extends EventEmitter implements Sayable {
}

public topic(newTopic?: string): string {
if (!this.isReady()) {
throw new Error('room not ready')
}

if (newTopic) {
log.verbose('Room', 'topic(%s)', newTopic)
}
Expand Down

0 comments on commit cd7c7dd

Please sign in to comment.