[Gccirc-discuss]gcc.irc V0.30B7
Brought to you by:
grnd
From: Ground <gr...@in...> - 2001-11-29 21:45:20
|
OK since I'm to lazy to ever get around to updating the stable version I'm tossing some new ideas in to the "stable beta". Following is a patch against V0.30B6 that only adds one new option: /ctime diff -u bp/gcc/gcc.irc gcc/gcc.irc --- bp/gcc/gcc.irc Wed Jun 27 12:45:41 2001 +++ gcc/gcc.irc Thu Nov 29 16:26:29 2001 @@ -8,8 +8,8 @@ # See the file 'history.txt' for a list of changes in this and # previous versions. -assign gccver 0.30B6 -assign gccdate Wed Jun 27 12:26:32 EST 2001 +assign gccver 0.30B7 +assign gccdate Thu Nov 29 16:16:06 EST 2001 assign ex [gcc] /eval /echo $ex Gcc Version $gccver by: ground @@ -95,6 +95,9 @@ ^assign recontime 0 ^assign autoget OFF eval ^assign boottime $time() +# Not sure if we need to init this or not +# I would guess so since often the script is loaded after connect. +eval ^assign connecttime $time() ^set NOVICE OFF ^set EXEC_PROTECTION OFF @@ -2551,6 +2554,8 @@ ^assign recontime 0 # We are connected to a server so kill any pending reconnects ^timer -delete 876 +# Reset the server connection time counter. +eval ^assign connecttime $time() } # should display the client's uptime @@ -2558,6 +2563,14 @@ @ tmpuptime = time() - boottime echo $ex Client uptime: $tdiff($tmpuptime) ^assign -tmpuptime +} +# This was added in v0.30 but the above function was used as a template so it +# appears here. +# This should display the connect time to the current server. +alias ctime { +@ tmpconnecttime = time() - connecttime +echo $ex Connected to server for: $tdiff($tmpconnecttime) +^assign -tmpconnecttime } # New stuff for 0.25 diff -u bp/gcc/gcchelp.irc gcc/gcchelp.irc --- bp/gcc/gcchelp.irc Tue Apr 17 17:33:23 2001 +++ gcc/gcchelp.irc Thu Nov 29 16:27:02 2001 @@ -17,7 +17,7 @@ # Make the description of the /autoreply function a little better. # The version of gcc this help file works with: -^assign helpver 0.30B2 +^assign helpver 0.30B7 alias gcchelp { ^assign helpcmd 0 if ([$0]==[]) { @@ -176,7 +176,6 @@ ^set hold_mode on echo $ex Status commands: echo $ex status: display gcc status information -echo $ex xdcc status: Display XDCC status information echo $ex chanst: Display stats on your current channel ^set hold_mode off } diff -u bp/gcc/history.txt gcc/history.txt --- bp/gcc/history.txt Wed Jun 27 12:45:41 2001 +++ gcc/history.txt Thu Nov 29 16:27:47 2001 @@ -1,4 +1,6 @@ (V0.30) +Added a /ctime alias to display how long you have been connected to your +current server. Fixed a bug that would cause the default setaway message to be used if the first character of the user supplied nessage was 0. Also fixed the same problem in /setback |