Fix loop
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
This commit is contained in:
parent
d02d4e07ef
commit
3cdc51ced4
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
||||||
|
|
||||||
while (!(execResult == null || execResult.groups == undefined)) {
|
while (!(execResult == null || execResult.groups == undefined)) {
|
||||||
if (execResult.groups.server_id != message.guildId) {
|
if (execResult.groups.server_id != message.guildId) {
|
||||||
|
execResult = re.exec(message.content);
|
||||||
continue; // do not let the bot leak messages from one server to another
|
continue; // do not let the bot leak messages from one server to another
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue