I've just finished making my dialog interface but have no idea how to put the ctcp blocking codes that are in the unsorted area into the dialog buttons


;##############################################
;
; Dialog
;
;##############################################

dialog ctcpblocker {
title "CTCP Blocker"
size -1 -1 204 196
option dbu
tab "Page 1", 2001, 0 2 204 194
box "", 2101, 12 20 180 155, tab 2001
check "Client Info", 1, 40 40 70 8, tab 2001
check "Time", 2, 120 55 70 8, tab 2001
check "MP3", 3, 40 85 70 8, tab 2001
check "ERRMSG", 4, 40 55 70 8, tab 2001
check "Ping", 5, 40 115 70 8, tab 2001
check "Finger", 6, 40 70 70 8, tab 2001
check "MP3GET", 7, 40 100 70 8, tab 2001
check "RAR", 8, 40 130 70 8, tab 2001
check "Slots", 9, 40 145 70 8, tab 2001
check "Sound", 10, 120 40 70 8, tab 2001
check "WAV", 11, 120 85 70 8, tab 2001
check "User Info", 15, 120 70 70 8, tab 2001
button "Cancel", 2008, 120 178 26 14, cancel
button "OK", 2011, 60 178 26 14, ok
}

;##############################################
;
; Menu
;
;##############################################

menu status {
CTCP Blocker: { dialog -m ctcpblocker ctcpblocker }
}

;##############################################
;
; Unsorted
;
;##############################################

#ctcp_blocker.clientinfo on
ctcp *:CLIENTINFO: { halt }
#ctcp_blocker.clientinfo end

#ctcp_blocker.errmsg on
ctcp *:ERRMSG: { halt }
#ctcp_blocker.errmsg end

#ctcp_blocker.finger on
ctcp *:FINGER: { halt }
#ctcp_blocker.finger end

#ctcp_blocker.mp3 on
ctcp *:MP3: { halt }
#ctcp_blocker.mp3 end

#ctcp_blocker.mp3get on
ctcp *:MP3GET: { halt }
#ctcp_blocker.mp3get end

#ctcp_blocker.ping on
ctcp *:PING: { halt }
#ctcp_blocker.ping end

#ctcp_blocker.rar on
ctcp *:RAR: { halt }
#ctcp_blocker.rar end

#ctcp_blocker.slots on
ctcp *:SLOTS: { halt }
#ctcp_blocker.slots end

#ctcp_blocker.sound on
ctcp *:SOUND: { halt }
#ctcp_blocker.sound end

#ctcp_blocker.time on
ctcp *:TIME: { halt }
#ctcp_blocker.time end

#ctcp_blocker.userinfo on
ctcp *:USERINFO: { halt }
#ctcp_blocker.userinfo end

#ctcp_blocker.wav on
ctcp *:WAV: { halt }
#ctcp_blocker.wav end

on *:LOAD: {
.set %ctcp_blocker.clientinfo On
.set %ctcp_blocker.errmsg On
.set %ctcp_blocker.finger On
.set %ctcp_blocker.mp3 On
.set %ctcp_blocker.mp3get On
.set %ctcp_blocker.ping On
.set %ctcp_blocker.rar On
.set %ctcp_blocker.slots On
.set %ctcp_blocker.sound On
.set %ctcp_blocker.time On
.set %ctcp_blocker.userinfo On
.set %ctcp_blocker.wav On
echo -a 0,2 CTCP Blocker 12,8 « Loaded Successfully » 
}

on *:UNLOAD: {
.disable #ctcp_blocker.clientinfo
.disable #ctcp_blocker.errmsg
.disable #ctcp_blocker.finger
.disable #ctcp_blocker.mp3
.disable #ctcp_blocker.mp3get
.disable #ctcp_blocker.ping
.disable #ctcp_blocker.rar
.disable #ctcp_blocker.slots
.disable #ctcp_blocker.sound
.disable #ctcp_blocker.time
.disable #ctcp_blocker.userinfo
.disable #ctcp_blocker.wav
.unset %ctcp_blocker*
saveini
echo -a 0,2 CTCP Blocker 12,8 « Unloaded Successfully » 
}