mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-07 16:56:43 +02:00
Update src/plugins/irc-events/connection.js
Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
This commit is contained in:
parent
d9ce50583e
commit
66e2080d5c
|
@ -44,7 +44,7 @@ module.exports = function (irc, network) {
|
||||||
const commands = network.commands.map(
|
const commands = network.commands.map(
|
||||||
(cmd) =>
|
(cmd) =>
|
||||||
new Promise((resolve) => {
|
new Promise((resolve) => {
|
||||||
if (cmd.toLowerCase().startsWith("/wait")) {
|
if (cmd.toLowerCase().startsWith("/wait ")) {
|
||||||
try {
|
try {
|
||||||
delay = parseInt(cmd.substring(6), 10) * 1000;
|
delay = parseInt(cmd.substring(6), 10) * 1000;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue