VERSION CHANGED TO 2.0.6

gnoemoe/gm-world.c: do not log LOG_OUT when not logged in
gnoemoe/mcp/gm-mcp-session.[ch]: added initialized function
This commit is contained in:
Jesse van den Kieboom 2006-04-09 10:32:56 +00:00
parent 23327791c2
commit 89a24d7b0f
7 changed files with 22 additions and 30 deletions

View File

@ -1,3 +1,8 @@
2006-09-04 Jesse van den Kieboom <jesse@icecrew.nl>
* VERSION CHANGED TO 2.0.6
* gnoemoe/gm-world.c: do not log LOG_OUT when not logged in
* gnoemoe/mcp/gm-mcp-session.[ch]: added initialized function
2006-08-04 Jesse van den Kieboom <jesse@icecrew.nl> 2006-08-04 Jesse van den Kieboom <jesse@icecrew.nl>
* gnoemoe/gm-editor.c: improved editor name generation, no longer * gnoemoe/gm-editor.c: improved editor name generation, no longer
open files O_EXCL open files O_EXCL

8
README
View File

@ -1,7 +1,7 @@
General Information General Information
=================== ===================
This is version 2.0.5 of gnoemoe. gnoemoe is a Gnome MOO Client. This is version 2.0.6 of gnoemoe. gnoemoe is a Gnome MOO Client.
GnoeMoe is a full featured Gnome MOO (MUD Object Oriented) Client which aims at GnoeMoe is a full featured Gnome MOO (MUD Object Oriented) Client which aims at
integrating in the Gnome desktop as nice as possible adhering the Gnome integrating in the Gnome desktop as nice as possible adhering the Gnome
@ -42,7 +42,7 @@ The official web site is:
You can download the latest gnoemoe tarball from the web site: You can download the latest gnoemoe tarball from the web site:
http://www.icecrew.nl/software/gnoemoe/download/gnoemoe-2.0.5.tar.gz http://www.icecrew.nl/software/gnoemoe/download/gnoemoe-2.0.6.tar.gz
Installation Installation
============ ============
@ -57,8 +57,8 @@ gnoemoe requires:
Simple install procedure: Simple install procedure:
% gzip -cd gnoemoe-2.0.5.tar.gz | tar xvf - # unpack the sources % gzip -cd gnoemoe-2.0.6.tar.gz | tar xvf - # unpack the sources
% cd gnoemoe-2.0.5 # change to the toplevel directory % cd gnoemoe-2.0.6 # change to the toplevel directory
% ./configure # run the `configure' script % ./configure # run the `configure' script
% make # build gedit % make # build gedit
[ Become root if necessary ] [ Become root if necessary ]

View File

@ -3,34 +3,16 @@ desktop_in_files = gnoemoe.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@ @INTLTOOL_DESKTOP_RULE@
# schemasdir = $(GCONF_SCHEMA_FILE_DIR)
# schemas_in_files = gnoemoe.schemas.in
# schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
# @INTLTOOL_SCHEMAS_RULE@
mimedir = $(datadir)/mime/packages mimedir = $(datadir)/mime/packages
mime_DATA = gnoemoe.xml mime_DATA = gnoemoe.xml
langdir = $(datadir)/gtksourceview-1.0/language-specs langdir = $(datadir)/gtksourceview-1.0/language-specs
lang_DATA = moo.lang lang_DATA = moo.lang
# if GCONF_SCHEMAS_INSTALL
# install-data-local:
# if test -z "$(DESTDIR)" ; then \
# for p in $(schemas_DATA) ; do \
# GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
# done \
# fi
# else
# install-data-local:
# endif
EXTRA_DIST = \ EXTRA_DIST = \
$(desktop_in_files) \ $(desktop_in_files) \
# $(schemas_in_files \
$(mime_DATA) \ $(mime_DATA) \
$(lang_DATA) $(lang_DATA)
CLEANFILES = \ CLEANFILES = \
$(desktop_DATA) $(desktop_DATA)
# $(schemas_DATA)

View File

@ -60,4 +60,4 @@ CLEANFILES += $(BUILT_SOURCES)
dist-hook: dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES) cd $(distdir); rm -f $(BUILT_SOURCES)
AM_CFLAGS = -Werror -Wall -Wsign-compare # AM_CFLAGS = -Werror -Wall -Wsign-compare

View File

@ -747,8 +747,8 @@ gm_world_log(GmWorld *world, GmLogType type, gchar const *text) {
} }
if (gm_options_get_int(options, "logging_add_timestamp")) { if (gm_options_get_int(options, "logging_add_timestamp")) {
start = g_strdup_printf("[%02d:%02d:%02d] ", timet->tm_hour, start = g_strdup_printf("[%02d:%02d] ", timet->tm_hour,
timet->tm_min, timet->tm_sec); timet->tm_min);
s = g_string_new(start); s = g_string_new(start);
g_free(start); g_free(start);
} else { } else {
@ -1149,7 +1149,8 @@ gm_world_sendln_log(GmWorld *world, gchar const *text, GmLogType logtype) {
normal = g_strdup(text); normal = g_strdup(text);
} }
if (logtype != LOG_NONE) { if (logtype != LOG_NONE && (logtype != LOG_OUT ||
gm_mcp_session_initialized(world->priv->mcp))) {
gm_world_log(world, logtype, text); gm_world_log(world, logtype, text);
} }

View File

@ -259,9 +259,12 @@ gm_mcp_session_reset(GmMcpSession *session) {
} }
g_list_free(session->priv->multiline); g_list_free(session->priv->multiline);
session->priv->multiline = NULL; session->priv->multiline = NULL;
}
gboolean
gm_mcp_session_initialized(GmMcpSession *session) {
return (session->priv->authkey != NULL);
} }
GList const * GList const *

View File

@ -68,6 +68,7 @@ GmMcpSession *gm_mcp_session_new(GObject *world);
GObject *gm_mcp_session_world(GmMcpSession *session); GObject *gm_mcp_session_world(GmMcpSession *session);
GList const *gm_mcp_session_get_packages(GmMcpSession *session); GList const *gm_mcp_session_get_packages(GmMcpSession *session);
void gm_mcp_session_reset(GmMcpSession *session); void gm_mcp_session_reset(GmMcpSession *session);
gboolean gm_mcp_session_initialized(GmMcpSession *session);
void gm_mcp_session_handle_oob(GmMcpSession *session, gchar *line); void gm_mcp_session_handle_oob(GmMcpSession *session, gchar *line);