mIRC Home    About    Download    Register    News    Help

Print Thread
#205126 13/10/08 06:22 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
can you grab this event when you self quit?

* Disconnected

I see that in the status, same with if i quit irc by type /quit left

the text i want to change in status is this one:

Closing Link: nick[address] (Quit: left)


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
if ON QUIT does not handle it then there is no event for it. You could script the /quit alias.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Another possibility is the ON DISCONNECT event

Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Code:
on &^*:ERROR:*Closing Link*: {
  echo -ac info $1-
  halt
}


Another possibility is the on ERROR event
Reference /help on ERROR

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Originally Posted By: argv0
if ON QUIT does not handle it then there is no event for it. You could script the /quit alias.

That's what i trying to do, but cant echo the text to me, then i get it two times, it comes from the server, and don't know how to halt the output the server sends me.

Crinul
I will test that code.

Someone that know the answer to this one?
Code:
on ^*:rawmode:#: {
  haltdef
  if ($1 == +o) { theme.op $nick $1- $2  }
}

alias theme.op {
  echo -t $chan $+($clr($theme_color(sysmsg))) $+ $t.op $1 sets mode: $2 $3 
}

the $+($clr($theme_color(sysmsg))) return the color i set, the $t.op return the char i want to show instead of the default *

here comes the problem i need help with.

if $1 is +o , then i send the command to theme.op that will echo the +o event as i want it to look like, but how can i show if more then one mode is in it? like seen on many servers

* nick sets mode: +ov nick1 nick2

i cant have a if ($1 == +ov) for every possible combination. so how can i solve this one?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
You have to loop through all of the modes with $len, $mid, while, etc.

Also, look at this thread: https://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=5&Number=203589

-genius_at_work

Last edited by genius_at_work; 13/10/08 07:35 PM.
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
I seem to remember this being asked a few times.

* Disconnected

is one of those messages that can't be silenced.

Last edited by vexed2; 14/10/08 01:25 AM.
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Then you can't haltdef this text ether?

* Identd request from xx.xxx.xxx.xxx
* Identd replied: 3265, 6667 : USERID : UNIX : ident


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2007
Posts: 218
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
I don't think you can.
There's a lot of * Messages That can't be scripted or silenced. At a guess i'd say about 60% of them you can, and 40% obviously, that you can't.
I've always wondered why myself.
It'd be nice for all the * Messages to be scriptable or silenced. smile

Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Originally Posted By: sparta
Then you can't haltdef this text ether?

* Identd request from xx.xxx.xxx.xxx
* Identd replied: 3265, 6667 : USERID : UNIX : ident


Options (alt+o) > Connect > Identd > de-select Show Identd requests


Link Copied to Clipboard