mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2018
Posts: 2
A
AngusK2 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: Aug 2018
Posts: 2
I am using a simple timed command

/timer 0 600 /msg #

to send a timed message.

My problem is if I send this in a bulk command to 66 different chats at the same time the timer activates but once it deploys I get disconnected from the server.

I am new to using mIRC and have no experience writing scripts. My question is, is there a way to stop the disconnection issues in the options or by modifying the command or a simple script that I can use to send a timed message to a group off different channels at once rather than doing 1 command at a time.

any help greatly appreciated

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You're likely being disconnected for flooding. Don't send 66 messages at once. You can try selecting 'Own messages" under Options > IRC > Flood.

Joined: Aug 2018
Posts: 2
A
AngusK2 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: Aug 2018
Posts: 2
Is there a way I could use this script to send to 60 channels?

on me:*:join:#channel: .timerme 0 600 msg #

would this work?

on me:*:join:#channel: .timerme 0 600 msg #
on me:*:join:#channel: .timerme 0 600 msg #
on me:*:join:#channel: .timerme 0 600 msg #

and so on?

Last edited by AngusK2; 05/08/18 12:23 PM.
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
If you have 60 separate :#channelname: entries, one for each channel name, that could work assuming you aren't joining all 60 at the same time. If your timer command contains words beginning with % or $ you would want to put them inside $unsafe() to delay their evaluation until you joined the channel.

You can also test whether this message appears in both channels:

/msg #channel1,#channel2 test

and whether the status window output from "/version" (not $version) gives an indication what is the max number of channels this works for. The length of the list of channels also limits the length of the message, so even if it lets you use 20 channels in 1 message, you'll need to test if that shortens the size of the message that's visible in channels.

Joined: Dec 2015
Posts: 148
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 148
Assuming the mIRC's flood protection or maroon's idea doesn't do the thing for you, here's one simple alternative:
Code:
alias mybuffer {
  var %window = @MyBuffer. $+ $cid
  window -hj5000 %window
  aline %window $1-
  if (!$timer(%window)) {
    mybuffer.execute %window

    ;!!!!! Here's the delay between commands (3 seconds) !!!!!
    .timer $+ %window 0 3 mybuffer.execute %window
  }
}

alias -l mybuffer.execute {
  if ($line($1,1)) {
    dline $1 1
    $v1
  }
  else mybuffer.stop $1
}

on *:disconnect:mybuffer.stop @MyBuffer. $+ $cid

alias -l mybuffer.stop {
  window -c $1
  .timer $+ $1 off
} 

Add "mybuffer" in front of any and all commands you want to execute in a controlled manner. The first command executes instantly, consecutive commands once every three seconds.

As an example:
Code:
on me:*:join:#:mybuffer msg # Oh hey, I joined # channel!


Link Copied to Clipboard