mIRC Home    About    Download    Register    News    Help

Print Thread
#243936 12/01/14 09:57 AM
Joined: Mar 2013
Posts: 19
K
KeiroD Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2013
Posts: 19
Hi,

I've been struggling on finding out what the $ipef2 variable is. Nobody seems to know what it is, nor how to replace it with a working variable.

I understand what every other part of the script except for that one variable does.

Removing it causes it to break horribly. Leaving it in place causes the script to continue functioning... but I'd like to replace it with a valid variable, if any that does what $ipef2 does.

This is the code as is:

Code:
[script] 
on 1!:PART:#: { writeini nicks.log entrance $site $nick | rnickbuf } 
on 1!:QUIT: { writeini nicks.log entrance $site $nick | rnickbuf } 
on 1:KICK:#: { writeini nicks.log entrance $remove($address($knick,2),*!*@) $knick | rnickbuf } 
alias RNICKBUF if ($lof(nicks.log) > 40000) { write -c nicks.log | echo 12 -se < clearing register entries > } 
on ^1!:JOIN:#: {  
  if (%avon == on) { r1nick $site $nick }  
  echo $colour(join) $chan $timestamp  $nick  ( $+ $strip($address) $+ ) has joined  $result | halt 
} 

alias r1nick { 
  if $ipef2($$1) == false return 
  set %anic $readini nicks.log entradas $$1  
  if ( %anic != $null ) && ( $$2 != %anic ) { 
    if %anic !isin %tclon {  
      set %texto 13[2 Previously Known As 3 %anic 2On Here 13]  13[11TestScript13] | unset %anic | return %texto      
    } 
  } 
  unset %anic 
}

menu menubar,channel,nicklist { 
  Entrance Script.... on/off 
  .On:/set %avon on | echo -a 8,4 ••• Entrance Script now set to ON ••• 
  .Off:/set %avon off | echo -a 8,4 ••• Entrance Script now set to OFF ••• 
} 

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You must have this identifier defined somewhere. Type //echo -ag $isalias(ipef2).fname to find out where it is.

Joined: Mar 2013
Posts: 19
K
KeiroD Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2013
Posts: 19
Originally Posted By: Loki12583
You must have this identifier defined somewhere. Type //echo -ag $isalias(ipef2).fname to find out where it is.


Output of:

//echo -ag $isalias(ipef2)

Result: $false

Output of:

//echo -ag $isalias(ipef2).fname

Result: * /echo: insufficient parameters

Edit: The ipef2 variable is defined only in the clone detector script. No other script has this variable.

Edit2: What IS the ipef2 variable? I can find no documentation anywhere on what that variable is, or even do.

Last edited by KeiroD; 12/01/14 05:24 PM.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
It isn't a variable, it's an custom identifier (alias) that's not provided by mIRC. $isalias isn't able to reference local aliases, which $ipef2 must be. Check the file that's using it.

Joined: Mar 2013
Posts: 19
K
KeiroD Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2013
Posts: 19
Originally Posted By: Loki12583
It isn't a variable, it's an custom identifier (alias) that's not provided by mIRC. $isalias isn't able to reference local aliases, which $ipef2 must be. Check the file that's using it.


No file's using it, just the script itself has the variable.

However, I notice that removing it seems to no longer be breaking the clone detection script in v7.32.

Hmm. I have no idea what this is for though and removing it seems to have worked.

Is there anything that you or anyone can see to improve this?

Joined: Mar 2013
Posts: 19
K
KeiroD Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2013
Posts: 19
OK, so I encountered another issue... I figured removing $timestamp would solve the problem. Unfortunately, it didn't.

Basically, what's happening is that the $timestamp variable is being doubled in logs and buffers. Any way we can fix that?

This is what it looks like:

From the raw logs

03(12:22:29 pm) (12:22:29 pm) Bullbound (Mibbit@x-85-374-86-103.hsd0.fl.comcast.net) has joined #BDI*OOC
(12:22:57 pm) <Bullbound> hey folks, half here
03(12:23:42 pm) (12:23:42 pm) * Seoladan (admin@74.194.ox.nrw) has joined #BDI*OOC
03(12:23:56 pm) * Seoladan (admin@74.194.ox.nrw) has left #BDI*OOC
03(12:32:54 pm) (12:32:54 pm) * Arianya (Whispers@mg-73-95-237-02.dhcp.embarqhsd.net) has joined #BDI*OOC
02(12:35:03 pm) * Disconnected
Session Close: Tue Jan 14 12:35:03 2014


Reloaded into the buffer:

(11:43:46 am) Entrance Script has been activated!
(11:45:32 am) * OrchidAFK settles on messing with Starbound
(11:52:15 am) * Jillian EXPLODES.
(11:52:29 am) <Jillian> I made myself think of Board Game Online.
(12:15:49 pm) (12:15:49 pm) Selezzz (Uainne@ag17-858-278-24.ok.ok.cox.net) has joined #BDI*OOC
(12:16:08 pm) * Selestia (Uainne@ag17-858-278-24.ok.ok.cox.net) Quit (Killed (NickServ (GHOST command used by Selezzz)))
(12:16:14 pm) * Selezzz is now known as Selestia
(12:22:29 pm) (12:22:29 pm) Bullbound (Mibbit@x-85-374-86-103.hsd0.fl.comcast.net) has joined #BDI*OOC
(12:22:57 pm) <Bullbound> hey folks, half here
(12:23:42 pm) (12:23:42 pm) * Seoladan (admin@74.194.ox.nrw) has joined #BDI*OOC
(12:23:56 pm) * Seoladan (admin@74.194.ox.nrw) has left #BDI*OOC
(12:32:54 pm) (12:32:54 pm) * Arianya (Whispers@mg-73-95-237-02.dhcp.embarqhsd.net) has joined #BDI*OOC
(12:35:03 pm) * Disconnected

When I removed $timestamp, the logs and buffer now show:

* Seoladan (admin@74.194.ox.nrw) has joined #BDI*OOC

and no longer displays the timestamp from mIRC itself. I'm not sure how to fix this without the doubling of timestamp in the logs and buffers.

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Use /echo -t to include the timestamp

Joined: Mar 2013
Posts: 19
K
KeiroD Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2013
Posts: 19
Originally Posted By: Loki12583
Use /echo -t to include the timestamp


Works nicely for displaying in the buffer of mIRC. However, doesn't display the time in the logs.

I'm assuming we can't have our cake and eat it too? :P

Thank you so much for helping me confirm for certain that the variable was not needed and the hint with regards to echo -t.

Edit: Suddenly, joins no longer show for me as well... what the hell.

Edit2: echo -t $active works, but now displays:

[08:31:58PM] 9 #testingshitteehee * Nymphetamine (NorthStar@stop.talking.it.only.bores.us) has joined #testingshitteehee

What's with the random digit there?

Also, looking up the other switches for /echo

Edit3: echo -at works now, however... the script no longer shows the detection of clones.

Edit4: I spoke too soon, it works.

However, echo -at causes joins and the like to show up in the current active screen. Which... is somewhat problematic. I was trying to get the script to stop outputting joins to the status window and the -a switch fixes that... but now every join in any other channel is now outputted to the active channel.

Basically, now that the -at switch work together, I get outputs like this:

[08:48:25PM] 9 #Chantry_OOC * Annika` (maryrose_b@ndy680pp7gt85u7-pz873bi1sr54q7.cpe.net.cable.rogers.com) has joined #Chantry_OOC
[08:48:40PM] <04Beatha> ... fucking hell.
[08:48:41PM] 9 #RPG-Hub * Nom (NomZ@gjz-23-78-38-309.san.res.rr.com) has joined #RPG-Hub 3[14 This user was also known as 5 NomZ 14 in #RPG-Hub. 3] 3[12AvalonScript3]

from other channels, even channels on another network in my current testing channel, which is not what I wanted. frown

Last edited by KeiroD; 15/01/14 03:04 AM.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Code:
echo $color(join) -t # * $nick ( $+ $address $+ ) has joined #

Joined: Mar 2013
Posts: 19
K
KeiroD Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Mar 2013
Posts: 19
That did the trick nicely!

Thanks, Loki. laugh


Link Copied to Clipboard