| 442 | } |
| 443 | |
| 444 | void messagebuf::purge() |
| 445 | { |
| 446 | refs = max(refs - 1, 0); |
| 447 | if(refs<=0 && owner.last()!=this) |
| 448 | { |
| 449 | owner.removeobj(this); |
| 450 | delete this; |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | // for AUTH: |
| 455 | void purgeauths(mclient &c) |
no test coverage detected