in the proc dcc:oper you should get your variables onick and pass first, then it would look like this:
Code: Select all
proc dcc:oper {nick host text} {
global onick pass
putserv "oper $onick $pass"
}
in the second proc, it tells you too many arguments ... a dcc bind will pass 3 variables to the procedure: handle, idx and text. You did it correct in your first proc, but you forgot text in dcc:kill
Code: Select all
bind dcc O kill dcc:kill
proc dcc:kill {nick idx text} {
putserv "kill $nick"
}
but this would kill the user on your server with the nick of your handle ... so I guess you want to do in the pline "kill <nick>", then the proc should look like this:
Code: Select all
bind dcc O kill dcc:kill
proc dcc:kill {nick idx text} {
set target [lindex [split $text] 0]
putserv "kill $target"
}