mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#148714 12/05/06 05:43 AM
Joined: Oct 2005
Posts: 71
D
D00M Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Oct 2005
Posts: 71
grin grin grin grin

Working like a charm,i feel like a kid in a candy store laugh

Thank you ever so much schaefer31,this is exactly what i was after and you have come through with fine form,im forever in your debt wink

#148715 19/05/06 02:05 PM
Joined: May 2006
Posts: 5
B
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: May 2006
Posts: 5
Hi. Nice script. But i have a problem.

The chan im in is looks like this - #:something

the problem is with (:) It gives me
›› (Error): Unknown command (something:{)

So the proble is with this line: ON 1:TEXT:*:# : something:{

So how to make, that this (:)before channles name wouldnt ruin my script? when i put another channel normally #something, it works.

Any ideas? smile

#148716 19/05/06 03:44 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on *:text:*:#:{
  if ($chan == #:something) {
    ; Do stuff.
  }
}

#148717 19/05/06 05:09 PM
Joined: May 2006
Posts: 5
B
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: May 2006
Posts: 5
Thanks hixxy.

Hm, still have some troubles.

Lets say pre channel echoes:

(20:06) · @Bot · -› pre in MP3 -› The Danger Os Little Machines (EP) 2006 BUTT -›

Im trying code:

on *:TEXT:*:#Echo_chan:{
; The message MUST match the following format exactly
; [-PRE-] [Type] Date:(yyyy-mm-dd) Release:(T)
; Where Type is any of the following: DVD-R SVCD VCD XBoX XviD Games
; T is any string of text, it cannot be blank
var %r = /^\-›pre in\ \(?:DVDR|SVCD|VCD|XBOX|MP3|XViD|GAMES)\-› \(.+\)$/iS -›
if ($regex($1-,%r)) {
msg #chan_where_should_echo $1-
}
}

Any help? smile

Page 2 of 2 1 2

Link Copied to Clipboard