mIRC Home    About    Download    Register    News    Help

Print Thread
Changing the symbols around <nickname> #169236 20/01/07 07:37 PM
Joined: Jan 2007
Posts: 3
T
Thoronwen Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Jan 2007
Posts: 3
Hi,
I was wondering if it's possible to change the symbols around someone's nickname in the message screen.
I.e.:
<Thoronwen> Hi
to
[Thoronwen] Hi

Thanks for helping.

Re: Changing the symbols around <nickname> [Re: Thoronwen] #169256 20/01/07 08:01 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
You can create your own "theme".
on *:text:*:#:{
echo -t $chan [ $+ $nick $+ ]: $1-
}

That sort of thing.

Re: Changing the symbols around <nickname> [Re: DJ_Sol] #169274 20/01/07 09:17 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
You forgot to haltdef the event (and use ^). smile


Invision Support
#Invision on irc.irchighway.net
Re: Changing the symbols around <nickname> [Re: Riamus2] #169288 21/01/07 03:57 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
No I never make themes so know nothing about them. Just pointing them in the right direction. Why dont you show them how its done.

Re: Changing the symbols around <nickname> [Re: DJ_Sol] #169289 21/01/07 04:18 AM
Joined: May 2005
Posts: 449
bwr30060 Offline
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
He did.
Code:
on ^*:text:*:#:{
echo -t $chan [ $+ $nick $+ ] &+ : $1-
haltdef
}

Last edited by bwr30060; 21/01/07 04:19 AM.
Re: Changing the symbols around <nickname> [Re: bwr30060] #169292 21/01/07 05:56 AM
Joined: Apr 2006
Posts: 400
K
Kurdish_Assass1n Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Code:
on ^*:text:*:#:{
echo -t $chan [ $+ $nick $+ ] &+ : $1-
haltdef
}


^^This isn't going to work, the code makes it look like it's using evaluation brackets, so, it will not echo back correctly. And also, it uses "&+" instead of "$+". I would use this:

Code:
on ^*:TEXT:*:#:{
  echo -t $chan $+($chr(91),$nick,$chr(93)) $+ : $1-
  haltdef
}

laugh

Last edited by Kurdish_Assass1n; 21/01/07 05:59 AM.

-Kurdish_Assass1n
Re: Changing the symbols around <nickname> [Re: Kurdish_Assass1n] #169293 21/01/07 06:11 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
You can save that last $+ by including the : in your $+(). For that matter, if you include it, you can have the final ] as a ] instead of a $chr because the : next to it would prevent evaluation.

Code:
on ^*:TEXT:*:#:{
  echo -t $chan $+($chr(91),$nick,]:) $1-
  haltdef
}


Of course, putting the : next to the ] in the original would also work.

Code:
on ^*:text:*:#:{
  echo -t $chan [ $+ $nick $+ ]: $1-
  haltdef
}


Invision Support
#Invision on irc.irchighway.net
Re: Changing the symbols around <nickname> [Re: Riamus2] #169627 26/01/07 12:54 PM
Joined: Jan 2007
Posts: 3
T
Thoronwen Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Jan 2007
Posts: 3
Its working fine now, thanks alot.

However, as only other users can trigger the on TEXT event, my own nick still appears as <Thoronwen>. Any ideas on how to change that aswell?

Re: Changing the symbols around <nickname> [Re: Thoronwen] #169638 26/01/07 02:27 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
/help on INPUT

It's almost the same format as on TEXT, but the trigger isn't in the event line. Check the format and make an on INPUT event that is similar to your on TEXT event. You don't need to use ^ in the on INPUT event. Try it and let's see what you come up with.


Invision Support
#Invision on irc.irchighway.net
Re: Changing the symbols around <nickname> [Re: Riamus2] #169665 26/01/07 06:57 PM
Joined: Jan 2007
Posts: 3
T
Thoronwen Offline OP
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Jan 2007
Posts: 3
Code:
on *:INPUT:#:{
  /echo 4 -tlm $chan « $+ $me $+ » $1-
  haltdef
} 

(Returns '[19:57] «Thoronwen» Hi' in red.)

Seems to work like a charm smile Thanks again for helping.

Last edited by Thoronwen; 26/01/07 06:58 PM.
Re: Changing the symbols around <nickname> [Re: Thoronwen] #169693 26/01/07 10:39 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Looks good. smile


Invision Support
#Invision on irc.irchighway.net