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

Fix set_on_command #34

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Fix set_on_command #34

merged 2 commits into from
Feb 23, 2022

Conversation

Anotra
Copy link
Contributor

@Anotra Anotra commented Feb 23, 2022

…e previous values

src/client.c Outdated
Comment on lines 209 to 211
for (; index < client->gw.cmds.amt; index++)
if (command_len == client->gw.cmds.pool[index].size)
if (strcmp(command, client->gw.cmds.pool[index].start) == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (; index < client->gw.cmds.amt; index++)
if (command_len == client->gw.cmds.pool[index].size)
if (strcmp(command, client->gw.cmds.pool[index].start) == 0)
for (; index < client->gw.cmds.amt; index++)
if (command_len == client->gw.cmds.pool[index].size
&& 0 == strcmp(command, client->gw.cmds.pool[index].start))

src/gateway.c Outdated Show resolved Hide resolved
src/gateway.c Outdated Show resolved Hide resolved
@Anotra Anotra force-pushed the fix_set_on_command branch from 1e7f303 to ed9143f Compare February 23, 2022 17:09
src/client.c Outdated Show resolved Hide resolved
@lcsmuller lcsmuller merged commit 7b597c3 into Cogmasters:dev Feb 23, 2022
@Anotra Anotra deleted the fix_set_on_command branch February 24, 2022 15:28
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

Successfully merging this pull request may close these issues.

2 participants