Portfolio

CLEAR ALL CHANNELS

Posted in MIRC with 659 views.

Simple script to clear all channels within the window in MiRC. Very straight forward and efficient script.

If MiRC stays open for days.. The log buffer on the screen gets so long that It is annoying to clear the screen of 20 chat windows at once. So this does it, works on multiple networks as well!

CODE:
; **/
; * Clears all the channels
; * 
; * @author Mohamed Mansour
; * @since 5/20/2006
; * @build 1.0
; */

alias Tools.ClearAllChannels {

	;// Initialze the Loop Counter
	var %i = 1
	
	;// Loop through the whole Channel Array
	while ( %i <= $chan(0) ) {
		/clear $chan( %i )
		inc %i
	}

}

;// ### Menu
menu query,channel {
  -
  Clear Channels: /Tools.ClearAllChannels 
  -
}