Author: DNB
Date: Thu Mar 17 16:57:50 2005
New Revision: 9
Modified:
trunk/ChangeLog
trunk/seen.c
Log:
fix bug not showing data if valid nickname used and the nick wasn't currently online.
stop showing extra matches if only one match found
added missed ChangeLog Updates
Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Thu Mar 17 16:57:50 2005
@@ -2,6 +2,8 @@
Fish (F), Mark (M), DeadNotBuried (D)
==============================================================================
3.0.a3-dev
+ - SEEN and SEENNICK available to NS_ULEVEL_LOCOPER even if disabled
+ (including in the services channel) (D)
- SEEN and SEENNICK now checks to see if passed data is a valid nickname,
and if the nick is online before traversing the Seen Data List (D)
- Added Verbose Setting. (D)
Modified: trunk/seen.c
==============================================================================
--- trunk/seen.c (original)
+++ trunk/seen.c Thu Mar 17 16:57:50 2005
@@ -173,8 +173,8 @@
irc_chanprivmsg (sns_bot, cmdparams->channel->name, "%s (%s@%s) is connected right now", u->name, u->user->username, u->user->vhost);
}
}
+ return NS_SUCCESS;
}
- return NS_SUCCESS;
}
if (checktype == SS_CHECK_NICK) {
if (ValidateNick(cmdparams->av[0]) == NS_FAILURE) {
@@ -258,10 +258,10 @@
ircsnprintf(ttxt[3], 12, "0 Seconds");
}
ircsnprintf(dt, SS_GENCHARLEN, "%s%s%s%s", ttxt[0], ttxt[1], ttxt[2], ttxt[3]);
- if (checktype == SS_CHECK_NICK) {
+ if (checktype == SS_CHECK_NICK || sef == 1) {
nickstr[0] = '\0';
} else if (checktype == SS_CHECK_WILDCARD) {
- ircsnprintf(nickstr, SS_MESSAGESIZE, "The %d most recent matches are: %s%s%s%s%s , ", sef, senf[0], senf[1], senf[2], senf[3], senf[4]);
+ ircsnprintf(nickstr, SS_MESSAGESIZE, "The %d most recent matches are - %s%s%s%s%s : ", sef, senf[0], senf[1], senf[2], senf[3], senf[4]);
}
if ( sdo->seentype == SS_CONNECTED ) {
u = FindUser(sdo->nick);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.