Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
b1naryth1ef committed Jul 25, 2016
1 parent 977582a commit 045490c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash

rm -rf docs
DFLAGS='-c -o- -Df__dummy.html -Xfdocs.json' dub build
dub fetch scod
dub run scod -- filter --min-protection=Protected docs.json
dub run scod -- generate-html --navigation-type=ModuleTree docs.json docs
# pkg_path=$(dub list | sed -n 's|.*scod.*: ||p')
# rsync -ru "$pkg_path"public/ docs/
pkg_path=$(dub list | sed -n 's|.*scod.*: ||p' | head -n1)
rsync -ru "$pkg_path"public/ docs/

if [ ! -z "${GH_TOKEN:-}" ]; then
pushd docs
Expand Down
1 change: 1 addition & 0 deletions src/dscord/gateway/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class GatewayClient {

/**
Params:
client = base client
eventTracking = if true, log information about events recieved
*/
this(Client client, bool eventTracking = false) {
Expand Down
2 changes: 1 addition & 1 deletion src/dscord/types/util.d
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MessageBuffer {
raw = raw.replace("`", "").replace("\n", "");
}

if (this.length + raw.length > this.realMaxLength) {
if (this.length + raw.length > this.maxLength) {
return false;
}

Expand Down

0 comments on commit 045490c

Please sign in to comment.