not sure if this is what u meant but u can try it
on *:text:*:#ops: {
if ($nick isop $chan) && ($regex($1-,/(^|\s)(.idshow?w?s?\s\S+)/i)) {
set -u3 %whoisnicks $gettok($replace($gettok($2-,1-,46),$chr(32),$chr(44)),1,46)
if ($numtok(%whoisnicks,44) <= 10) {
tokenize 32 $regml(2) | whois $2
}
}
if ($nick isop $chan) && ($regex($1-,/(^|\s)(.lastid?d?s?\s\S+)/i)) {
set -u3 %whowasnicks $gettok($replace($gettok($2-,1-,46),$chr(32),$chr(44)),1,46)
if ($numtok(%whowasnicks,44) <= 10) {
tokenize 32 $regml(2) | whowas $2
}
}
}
Still got the primary issue of the bot sending to pm! I did try replacing that section on my bot and nought showing at all now... something is not quite right!