jim sloan wrote:
that functionality does not require the complexity of the nested if
statements.
Are we looking at the same V-shaped 15-line block of code, Jim? :-)
I'm just making a case that it could be more linear.
1. get the user if nickname exists
2. if plugin finds user via an alias or email then it will return the
user object
The whole point of this kind of structure is that plugins can augment
/or/ replace the default processing. The more of the "default
processing" we get between Event::handle() calls, the more that plugins
can do.
If it's really sticking in your craw I'll make those three internal if's
into one if.
-Evan
--
Evan Prodromou
CEO, StatusNet, Inc.
[email protected] - http://identi.ca/evan - +1-514-554-3826
_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev