Difference between revisions of "On error"

From Scriptwiki
Jump to: navigation, search
(Added page.)
 
m (Small change.)
Line 1: Line 1:
== on ERROR ==
 
 
 
The on ERROR event triggers when an IRC Server sends an ERROR message, this usually occurs on a disconnection.
 
The on ERROR event triggers when an IRC Server sends an ERROR message, this usually occurs on a disconnection.
 
The $1- parameters refer to the full error message.
 
The $1- parameters refer to the full error message.

Revision as of 22:07, 6 July 2014

The on ERROR event triggers when an IRC Server sends an ERROR message, this usually occurs on a disconnection. The $1- parameters refer to the full error message.

on <level>:ERROR:<matchtext>:<commands>


Examples:

on 1:ERROR:*server full*:/echo Try another server!

For an explanation of matchtext see the on TEXT event.

on 1:ERROR:*banned*:/echo I am banned from this server *mumble*!

This triggers when you try to connect to a server and it tells you that you are banned.


Note: This event is not related to any kind of error reporting in mIRC itself.