mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2011
Posts: 3
G
gannie Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Mar 2011
Posts: 3
as admin i used a small peace of scripting to display join, kick and part events in seperate window, in 6.35 it worked fine but in 7.15 its not.
;----------
raw 0:*: {
if ($3 == JOIN) { echo @events $5 join channel: $4 | halt }
if ($3 == PART) { echo @events $5 parts kamer: $4 | halt }
if ($3 == KICK) { echo @events $3 $4 $5 kicked by $7 | halt }
}

in status sceen events are displayed in stead of window "events":
[13:31:59] -myServerName- MEMBER JOIN #nachtclub sweetheart!~HiNKeL-iRC@xxx.ip.telfort.nl 195.241.159.*:26067 (Wed Mar 16 13:31:59)

anybody any idea about this ?
Greetings
John

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Well, I see no code that creates the window when it doesn't yet exist.
Try this:
Code:
raw 0:*: {
  if (!$window(@events)) window @events
  if ($3 == JOIN) { echo @events $5 join channel: $4 | halt }
  if ($3 == PART) { echo @events $5 parts kamer: $4 | halt }
  if ($3 == KICK) { echo @events $3 $4 $5 kicked by $7 | halt }
}

Joined: Mar 2011
Posts: 3
G
gannie Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Mar 2011
Posts: 3
the window was created, sorry dit not put it in this post smile

Joined: Mar 2011
Posts: 3
G
gannie Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Mar 2011
Posts: 3
Problem solved.
changed raw 0:*: { into raw *:*: {


Link Copied to Clipboard