mIRC Home    About    Download    Register    News    Help

Print Thread
#201655 01/07/08 09:38 PM
Joined: Feb 2007
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2007
Posts: 10
How do I change the <> around a nick's name to something else?

Like,

<Erik_Destler> hi
to
[Erik_Destler] hi

and what do I add to this

on ^*:mode:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick sets mode: $1- | halt }
on ^*:op:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick opped: $opnick | halt }
on ^*:protect:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick protected: $pnick | halt }
on ^*:deprotect:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick deprotected: $pnick | halt }
on ^*:deop:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick deopped: $opnick | halt }
on ^*:help:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick halfopped: $hnick | halt }
on ^*:dehelp:#: { haltdef | echo $chan 0 $+ $color(mode) *** $nick dehalfopped: $hnick | halt }

to make it say

*** $nick ownered/protected qnick/anick
D:

Last edited by ErikDestler; 01/07/08 09:41 PM.
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on ^*:TEXT:*:*: {
  echo -mt $iif($chan != $null, $chan, $nick) $chr(91) $+ $nick $+ $chr(93) $+ $chr(32) $1-
  haltdef
}


For the first part, you can use above.

The second part of your question should be as follows:

Code:
on ^*:MODE:#: { haltdef | echo 4 -a *** $nick sets mode: $1- | halt }
on ^*:OP:#: { haltdef | echo 4 -a *** $nick opped: $opnick | halt }
on ^*:DEOP:#: { haltdef | echo 4 -a *** $nick deopped: $opnick | halt }
on ^*:HELP:#: { haltdef | echo 4 -a *** $nick halfopped: $hnick | halt } 
on ^*:DEHELP:#: { haltdef | echo 4 -a *** $nick dehalfopped: $hnick | halt } 
on ^*:OWNER:#: { haltdef | echo 4 -a *** $nick ownered: $qnick | halt } 
on ^*:DEOWNER:#: { haltdef | echo 4 -a *** $nick deownered: $qnick | halt } 
on ^*:RAWMODE:#: { if ($left($1-,2) == +a) { echo 4 -a $nick protected $1- | halt } }
on ^*:RAWMODE:#: { if ($left($1-,2) == -a) { echo 4 -a $nick deprotected $1- | halt } }

Last edited by Tomao; 02/07/08 01:16 AM.
Joined: Feb 2007
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2007
Posts: 10
but now it does

*** ChanServ ownered:
*** ChanServ opped: Sweeney_Todd

and

SerebiiBot protected +ao Sweeney_Todd Sweeney_Todd
*** SerebiiBot opped: Sweeney_Todd

Also, on the first part, I actually need the <> to change to «» D:

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Sorry, I'm not clear on what you're trying to achieve here. But here is your solution to the first part:

Code:
on ^*:TEXT:*:*: {
  echo -mt $iif($chan != $null, $chan, $nick) « $+ $nick $+ » $+ $chr(32) $1-
  haltdef
}

Joined: Feb 2007
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Feb 2007
Posts: 10
Originally Posted By: Tomao
Sorry, I'm not clear on what you're trying to achieve here.


What you gave to me echoes in all other channels, and as I mentioned in the log, it displays it twice..

*** SerebiiBot halfopped: Torkoal_Greg
is what I need it to look like, instead of SerebiiBot protected +ao Sweeney_Todd Sweeney_Todd
*** SerebiiBot opped: Sweeney_Todd.

Basically, I want it to just say *** SerebiiBot protected: Sweeney Todd :P

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
OK.. first off, these are not messages that match the ON TEXT categorization.

If SerebiiiBot is a bot in the channel, then these are channel notices, so you need to use the ON NOTICE event. Fortunately changing the ON TEXT event to the ON NOTICE event is a simple matter of changing the word TEXT to NOTICE. Aside from that, the format for these two events is identical.

Secondly, you can also keep the default message from displaying by altering the selection in mIRC Options - IRC - Events - Modes (drop down box)


Link Copied to Clipboard