mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 55
C
Chrisi Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2004
Posts: 55
I want to create 2 items in the nick color list.
At first it is empty. Than I use those 2 commands:
.cnick -m1 $eval($me,0) 11
.cnick -m2 $eval($me,0) 4"
But the second command updates the first one instead of creating a new one.

The same thing is possible, when I use the alt+b dialog add button.
So why doesn't it work via command?

Why do I want to do this:
One for the nicklist and one for the nick colour in the channel window.

What I want:
It should be possible to create 2 items with the same nick via /cnick

Last edited by Chrisi; 07/04/07 05:23 PM.
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
I'm unsure how to fix this, as there are no switches or anything for it to add a another.
Quote:

* Added $me to color list
* Updated $me in color list

This could possibly be a bug, and I'd like to see it allowing you to add one different -m1, -m2, and -m3 for the same nickname.
Edit: You could try making an custom alias named $mme (or anything else) and use that as the second nickname temporarily.
Code:
alias mme {
return $me
}


Last edited by Kardafol; 07/04/07 05:55 PM.

Those who can, cannot. Those who cannot, can.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
As Kardafol noted, there isn't a switch to create a new entry, so a new entry is only created when necessary. If there's already an entry for the nick, and you go to make a second entry, then the first one gets updated.

In order to do what you want, at the moment, you would need to use a script like this.
Code:
on ^*:text:*:*:{
  if $hget(nick_color,$nick) {
    echo  $iif($chan,$v1,$active)  $+ $hget(nick_color,$nick) $nick $+  $1-
  }
  elseif $hget(nick_color,$address) {
    echo  $iif($chan,$v1,$active)  $+ $hget(nick_color,$address) $nick $+  $1-
  }
  haltdef
}
on ^*:action:*:*:{
  if $hget(nick_color,$nick) {
    echo  $iif($chan,$v1,$active)  $+ $hget(nick_color,$nick) $nick $+  $1-
  }
  elseif $hget(nick_color,$address) {
    echo  $iif($chan,$v1,$active)  $+ $hget(nick_color,$address) $nick $+  $1-
  }
  haltdef
}
menu * {
  Set nick colors : .hadd -m nick_color $input(Nick or address,e,,$iif($menu == nicklist,$1)) $+($input(Foreground Color Number,e,Use 16 for default,0-16),$chr(44),$input(Foreground Color Number,e,Use 16 for default,0-16))
}
on *:start:{
  if !$hget(nick_color) { .hmake nick_color 100 }
  if $exists(nick_color.hsh) { .hload nick_color nick_color.hsh }
}
on *:exit:{
  .hsave -o nick_color nick_color.hsh
}
on *:disconnect:{
  .hsave -o nick_color nick_color.hsh
}

This has been tested and works with mIRC 6.17 (and above) with Windows XP.

If you have a different configuration, I don't guarantee that it'll work, but it should.

Joined: Jun 2004
Posts: 55
C
Chrisi Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2004
Posts: 55
Thanks for your help.
However I request to fix this or to add a switch, that supports adding a new entry with the same nick instead of updating the existing one.

RusselB, I use a much different configuration, so it will not work so easy this way (but I don't need more suggestions, because I will find some by myselfe). However this bug was tested on blank mIRC 6.21


Gamers.IRC - The best way to use mIRC
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
OK. Good luck, and if you decide that you need or want some assistance, let me know what configuration you're using and I'll do what I can to help you out. BTW: If this is the case, I recommend that you make a new post in the Scripts & Pop-ups section.

Joined: Dec 2002
Posts: 5,424
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,424
I have added a switch to /cnick in the next version that allows you to add another identically named entry instead of updating the existing one.

Joined: Jun 2004
Posts: 55
C
Chrisi Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2004
Posts: 55
Thanks. Works great.


Gamers.IRC - The best way to use mIRC

Link Copied to Clipboard