+ tgt = nil
+ if params[:who]
+ if m.private?
+ if params[:who] != m.sourcenick
+ m.reply '"ri tell <who>" syntax is only allowed in public channels'
+ return
+ end
+ elsif !(tgt = m.channel.users[params[:who]])
+ m.reply "sorry, i don't see user #{params[:who]} here on #{m.channel}"
+ return
+ end
+ end