mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
Hy.
I want to edit this: * Now talking in #channel . This message appear when you JOIN a channel. I want translate in my language that text.
Exemple:
(english) * Now talking in $chan
(my language) * Acum vorbesti in $chan

In debug @raw is not appear to be an raw mode. Can you help me?
Thanks!


/server IRC.RomaniaIRC.ORG
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On ^*:Join:#: { 
  if ($nick == $me) { echo 3 $chan * Acum vorbesti in $chan | haltdef }
}

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
you can also use a raw event:
Code:
raw  353:*: {
  clear $3
  haltdef | echo $3 $chr(3) $+ $color(join) $+ * Acum vorbesti in $3
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
Thanks smile


/server IRC.RomaniaIRC.ORG
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Probably not the best way about doing that, I'm forever using the /names command. If you type /names <#channel> on a channel you aren't on you're gonna get:

-
#channel * Acum vorbesti in #channel
#channel End of /NAMES list.
-

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You can use many diffrent raw events.. 366 would be one, End of /NAMES list. arent anything you use to often wink or you can use 324 or any other raw that are triggered with a join event, or set a %var, then unset it 2 secconds after you joined. if (%join == 1) many diffrent ways to do it smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Or just use On Join.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
[09:46] * Now talking in #chan
HERE JOIN event
[09:46] * Topic is 'test'
[09:46] * Set by RoCk on Sun Jun 17 09:44:55
HERE raw 353
HERE raw 366

Using the join event is the obvious choice. Not to mention that the info message to be replaced is triggered by the join event, not any numeric raw message.

on *:JOIN:#: {
if ($nick == $me) echo -a HERE raw JOIN
}
raw 353:*: {
echo -a HERE raw 353
}
raw 366:*: {
echo -a HERE raw 366
}

Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
You don't half make life difficult for yourself and other people sometimes whistle
Why go into using raws and setting vars, then unsetting them, when the simple on join event is there?

Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
I don't want to make the situation more difficult.
The first code is simple, the one slade gave to me.


/server IRC.RomaniaIRC.ORG
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
Exactly smile

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
You can use the 'me' prefix to simplify it a bit.

Code:
On me:^*:Join:#: { 
  echo 3 $chan * Acum vorbesti in $chan | haltdef 
}


Link Copied to Clipboard