From d964af81428a6d768aeb96906eb0538a30d919ca Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 5 Apr 2013 10:12:33 -0400 Subject: Fix root user warning running before g_type_init closes #504 --- src/fe-gtk/fe-gtk.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/fe-gtk/fe-gtk.c') diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 896ab143..deefb788 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -264,6 +264,15 @@ fe_args (int argc, char *argv[]) gdk_window_add_filter (gdk_get_default_root_window (), (GdkFilterFunc)root_event_cb, NULL); #endif +#ifndef WIN32 +#ifndef __EMX__ + /* OS/2 uses UID 0 all the time */ + if (getuid () == 0) + fe_message (_("* Running IRC as root is stupid! You should\n" + " create a User Account and use that to login.\n"), FE_MSG_WARN|FE_MSG_WAIT); +#endif +#endif /* !WIN32 */ + return -1; } -- cgit 1.4.1