something along the line:

on *:chat:username: {
if ($nick == botname) {
msg =$nick loginName
}
}

on *:chat:password: {
if ($nick == botname) {
msg =$nick PassWord
}
}

the =$nick makes it send the msg via dcc chat rather than normal query, the on *:chat event is triggered when a msg is sent to a dcc chat window...

-k-