mIRC Home    About    Download    Register    News    Help

Print Thread
#240740 24/02/13 06:37 AM
Joined: Feb 2013
Posts: 2
J
JAMSM Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
J
Joined: Feb 2013
Posts: 2
Eh... I'm new to scripting... I've found someone with a rather... bothersome script... as you can see, I use ellipses often, rather than commas or simple periods, and so, I'll occasionally respond with a message containing only "..." well, this person's script responds to a message consisting only of '.'s for n number of periods, with n+1 '.'s
now, this is a bothersome script for me. now, I've written a sort of rebuttal, note that the text isn't final, and I've not yet tested it, I just wanted to know if this should work, and if not why (I want to learn, so if it's possible, I'd rather help than the successful code, though I would accept the successful code as well).
Code:
var %dot = .
var %name = someName
on 1:TEXT:$msg:#:{
  if (!(!%dot isin $msg)) {//can I do this, the !var?
    if (%name == $nick) {//will this only react if %name said it?
      msg $chan That dang script, $nick.
    }
  }
}

Last edited by JAMSM; 24/02/13 06:38 AM.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
This automation is just as bad as his. You should take it up with channel ops, or ignore the text.

Code:
on *$^:text:/^\.+$/S:#:{ if ($nick == %name) haltdef }

Joined: Feb 2013
Posts: 2
J
JAMSM Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
J
Joined: Feb 2013
Posts: 2
Dear god... Loki, you're rather not the Loki who would know what I mean, would you be?

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
I don't think so.


Link Copied to Clipboard