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

Username truncation affects the original variable. #1544

Open
DasBrain opened this issue Mar 3, 2024 · 0 comments
Open

Username truncation affects the original variable. #1544

DasBrain opened this issue Mar 3, 2024 · 0 comments

Comments

@DasBrain
Copy link
Contributor

DasBrain commented Mar 3, 2024

Reproducer:

Edit the set username of the config to something like this

set dasbrain's-awesome-configuration-template-name tcl9eggdrop
putlog "DBG: dasbrain's-awesome-configuration-template-name: ${dasbrain's-awesome-configuration-template-name}"
set username ${dasbrain's-awesome-configuration-template-name}
putlog "DBG: Username: $username"
putlog "DBG: dasbrain's-awesome-configuration-template-name: ${dasbrain's-awesome-configuration-template-name}"

Observe when starting eggdrop it outputs:

DBG: dasbrain's-awesome-configuration-template-name: tcl9eggdrop
DBG: Username: tcl9eggdro
DBG: dasbrain's-awesome-configuration-template-name: tcl9eggdro

The set username ${dasbrain's-awesome-configuration-template-name} modifies dasbrain's-awesome-configuration-template-name variable.

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