diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
| commit | 431918ceacfd5a580d4f28a8ae6077c9bbc44b99 (patch) | |
| tree | 27dcb4182ee1041f9160df28e3266165412285ae /src/nickserv.c | |
| parent | 2fd6bf39b1b018a7081fafd8350ea88f1b733ea5 (diff) | |
listnicks and listchans go away, as they aren't all that useful (and way too old.)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1201 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickserv.c')
| -rw-r--r-- | src/nickserv.c | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/src/nickserv.c b/src/nickserv.c index b10805e83..0e374eaef 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -41,116 +41,6 @@ void moduleAddNickServCmds(void) { /* *INDENT-ON* */ /*************************************************************************/ -/* Display total number of registered nicks and info about each; or, if - * a specific nick is given, display information about that nick (like - * /msg NickServ INFO <nick>). If count_only != 0, then only display the - * number of registered nicks (the nick parameter is ignored). - */ - -void listnicks(int count_only, const char *nick) -{ - int count = 0; - NickAlias *na; - int i; - char *end; - - if (count_only) { - - for (i = 0; i < 1024; i++) { - for (na = nalists[i]; na; na = na->next) - count++; - } - printf("%d nicknames registered.\n", count); - - } else if (nick) { - - struct tm *tm; - char buf[512]; - static const char commastr[] = ", "; - int need_comma = 0; - - if (!(na = findnick(nick))) { - printf("%s not registered.\n", nick); - return; - } else if (na->status & NS_VERBOTEN) { - printf("%s is FORBIDden.\n", nick); - return; - } - printf("%s is %s\n", nick, na->last_realname); - printf("Last seen address: %s\n", na->last_usermask); - tm = localtime(&na->time_registered); - strftime(buf, sizeof(buf), - getstring(NULL, STRFTIME_DATE_TIME_FORMAT), tm); - printf(" Time registered: %s\n", buf); - tm = localtime(&na->last_seen); - strftime(buf, sizeof(buf), - getstring(NULL, STRFTIME_DATE_TIME_FORMAT), tm); - printf(" Last seen time: %s\n", buf); - if (na->nc->url) - printf(" URL: %s\n", na->nc->url); - if (na->nc->email) - printf(" E-mail address: %s\n", na->nc->email); - if (na->nc->icq) - printf(" ICQ #: %d\n", na->nc->icq); - if (na->nc->greet) - printf(" Greet: %s\n", na->nc->greet); - *buf = 0; - end = buf; - if (na->nc->flags & NI_KILLPROTECT) { - end += - snprintf(end, sizeof(buf) - (end - buf), - "Kill protection"); - need_comma = 1; - } - if (na->nc->flags & NI_SECURE) { - end += snprintf(end, sizeof(buf) - (end - buf), "%sSecurity", - need_comma ? commastr : ""); - need_comma = 1; - } - if (na->nc->flags & NI_PRIVATE) { - end += snprintf(end, sizeof(buf) - (end - buf), "%sPrivate", - need_comma ? commastr : ""); - need_comma = 1; - } - if (na->status & NS_NO_EXPIRE) { - end += snprintf(end, sizeof(buf) - (end - buf), "%sNo Expire", - need_comma ? commastr : ""); - need_comma = 1; - } - printf(" Options: %s\n", *buf ? buf : "None"); - - if (na->nc->flags & NI_SUSPENDED) { - if (na->last_quit) { - printf - ("This nickname is currently suspended, reason: %s\n", - na->last_quit); - } else { - printf("This nickname is currently suspended.\n"); - } - } - - - } else { - - for (i = 0; i < 1024; i++) { - for (na = nalists[i]; na; na = na->next) { - printf(" %s %-20s %s\n", - na->status & NS_NO_EXPIRE ? "!" : " ", - na->nick, na->status & NS_VERBOTEN ? - "Disallowed (FORBID)" : (na->nc-> - flags & NI_SUSPENDED ? - "Disallowed (SUSPENDED)" : - na->last_usermask)); - count++; - } - } - printf("%d nicknames registered.\n", count); - - } -} - -/*************************************************************************/ - /* Return information on memory use. Assumes pointers are valid. */ void get_aliases_stats(long *nrec, long *memuse) |
