Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quotes returned an empty line #25

Closed
boreq opened this issue Aug 9, 2018 · 0 comments
Closed

Quotes returned an empty line #25

boreq opened this issue Aug 9, 2018 · 0 comments

Comments

@boreq
Copy link
Collaborator

boreq commented Aug 9, 2018

DBUG[08-09|22:25:47] findModuleResponse executing             source=cmd/glitzz/commands/run command="{Text:.dennis Nick:boreq}"
DBUG[08-09|22:25:47] executing command                        source=modules/quotes name=dennis
DBUG[08-09|22:25:47] queueing message                         source=core/sender queued_messages=0
DBUG[08-09|22:25:47] sending message                          source=core/sender target=#botnet_test text=

The file doesn't contain empty lines. It is possible that the trailing newline in the file causes the last element of the list to be empty.

Solution: when loading quotes the module should ignore empty lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant