Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/swift' into swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Keller committed Mar 13, 2017
2 parents 4c565f1 + e9caa97 commit 1c8db6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/CommandUnclosed.swift
Expand Up @@ -65,15 +65,14 @@ class CommandUnclosed: Command {
}

var messageClosed = ""

//Now fetch the posts from the API
for post in try apiClient.fetchQuestions(postsToCheck).items ?? [] {
if (post.closed_reason == nil)
{
//post is not closed
//message.room.postMessage("\(post.link)")

messageClosed = messageClosed + "\n [tag:\(post.tags!.first ?? "tagless")] \(post.link!)"
messageClosed = messageClosed + "\n \(post.link)"
}
}

Expand Down
1 change: 1 addition & 0 deletions Sources/main.swift
Expand Up @@ -264,6 +264,7 @@ func main() throws {
location = "\(user)/\(device)"

location = String(location.characters.filter { !"\n".characters.contains($0) })
userLocation = location
user = String(user.characters.filter { !"\n".characters.contains($0) })
device = String(device.characters.filter { !"\n".characters.contains($0) })
ping = " (cc @\(user))"
Expand Down

0 comments on commit 1c8db6f

Please sign in to comment.