:misc window formats
:module
:

on ^window * {
	if ([$2] == [BitchX:]) {
		xecho -window $0 $G $3-
	}
	{
		if ([$1 $2 $3] == [DCC RESUME starting]) {
	                xecho -window $0 $G DCC $(c2)RESUME$(c3) starting at $(c4)[$(c2)$4$(c4)] 
		}
		{
			if (match(*[[1;31mDCC[[0m* $stripansi($2)) == [1]) { 
				xecho -window $0 $G $(c1)DCC$(c3) $3- 
			}
			{
			        if ([$1] != [shell-init:]) { 
					if ([$2 $3 $4] != [CONNECT activated by]) {
						if ([$1-] != [Connection closed by foreign host.]) { 
							if ([$1] != [###]) { xecho -window $0 $1- } 
						}
					}
				}
			}
		}
	}
}
on ^window  "*Your nick * is owned by*" { xecho -window $0 $G $(c3)The nick $(c4)[$(c2)$after([ $before(] $stripansicodes($4)))$(c4)]$(c3) is owned by $(c2)$before(@ $strip( $stripansicodes($8)))$(c1)@$(c2)$after(@ $strip(B $stripansicodes($8)))$(c3). }
on ^306 * #
on ^305 * #
