While you could script a lot of events for this, ON JOIN, ON PART, ON QUIT, ON KICK, ON BAN, etc,. etc. etc.
You could also use the ON RAWMODE event
With this event, the line
/mode #test +oo-v solo solo123 otheruser
would return
+oo-v solo solo123 otheruser
as $1-
As I'm not familiar with socket bots, this may not be applicable to your usage, but from a mIRC scripting aspect, this should be ideal.