Okay so here's what I want to do. Whenever someone types in "!kill <nick>" I want the bot in which the script is hosted on to say a message such as "<nick> has been killed."

For example:
!kill Random
Random has been killed.

Here's what I have so far:

on *:text:*!kill*:#: {
if ($1 == %c $+ !kill) {
.action $chan $nick has been killed.
}
}

What else do I need to add/edit for this to work?