summaryrefslogtreecommitdiff
path: root/doPlayback.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPlayback.go')
-rw-r--r--doPlayback.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/doPlayback.go b/doPlayback.go
index 34a9557..94fd82d 100644
--- a/doPlayback.go
+++ b/doPlayback.go
@@ -7,6 +7,10 @@ import (
)
func doPlayback() {
+ if argv.Playback.Uuid != "" {
+ showChat(argv.Playback.Uuid)
+ return
+ }
log.Infof("Found %d chat topic(s) in the log.", len(me.chats.GetChats()))
fmt.Println("-------------------------------------------------")
@@ -35,3 +39,13 @@ func doPlayback() {
}
fmt.Println("-------------------------------------------------")
}
+
+func showChat(uuid string) {
+ chat := me.chats.FindByUuid(uuid)
+ if chat == nil {
+ log.Info("unknown uuid", uuid)
+ return
+ }
+ log.Info("uuid was found ok", uuid)
+ // TODO: show the chat entries here
+}