Don't count detached users in server local user count.
authorSkywing <skywing@valhallalegends.com>
Fri, 12 Dec 2008 04:22:04 +0000 (23:22 -0500)
committerSkywing <skywing@valhallalegends.com>
Fri, 12 Dec 2008 04:22:04 +0000 (23:22 -0500)
commitce742c4140e578ab25c84eef9c189892c3681214
treeaae964d6e48cc02274fb7584af1339b7c650cb5e
parentb560ba10ed343202962d5575a988e1faec91e0db
Don't count detached users in server local user count.

This commit decrements the count of users when a detach occurs, and
increments the count when a user re-attaches.

This is done as current silc routers have a bug where only a detached
users previous home server is not properly pro-actively notified of a
user resuming elsewhere unless the user resumes on a router server.

The issue with non-router-server resume notification will be fixed
seperately.  This change allows member servers to operate reliably in
the event that there is a router with the aforementioned bug in their
silcnet.
apps/silcd/command.c
apps/silcd/packet_receive.c