Index: trunk/BNC/bncconst.h
===================================================================
--- trunk/BNC/bncconst.h	(revision 191)
+++ trunk/BNC/bncconst.h	(revision 192)
@@ -2,5 +2,5 @@
 #define BNCCONST_H
 
-enum t_irc {failure = -1, success}; // return code
+enum t_irc {failure = -1, success, fatal}; // return code
 
 class t_CST {
Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 191)
+++ trunk/BNC/bncgetthread.cpp	(revision 192)
@@ -21,4 +21,5 @@
 
 #include "bncgetthread.h"
+#include "bnctabledlg.h"
 
 #include "RTCM/RTCM.h"
@@ -123,7 +124,35 @@
     QString line = _socket->readLine();
     if (line.indexOf("Unauthorized") != -1) {
-      emit(newMessage((_staID + ": Caster Response:\n" + line).toAscii()));
-      exit(1);
-      return failure;
+      QStringList table;
+      bncTableDlg::getFullTable(_mountPoint.host(), _mountPoint.port(), table);
+      QString net;
+      QStringListIterator it(table);
+      while (it.hasNext()) {
+        QString line = it.next();
+        if (line.indexOf("STR") == 0) {
+          QStringList tags = line.split(";");
+          if (tags.at(1) == _staID) {
+            net = tags.at(7);
+            break;
+          }
+        }
+      }
+
+      QString reg;
+      it.toFront();
+      while (it.hasNext()) {
+        QString line = it.next();
+        if (line.indexOf("NET") == 0) {
+          QStringList tags = line.split(";");
+          if (tags.at(1) == net) {
+            reg = tags.at(7);
+            break;
+          }          
+        }
+      }
+      emit(newMessage((_staID + ": Caster Response:\n" + line + 
+                       "\nAdjust User-ID and Password Register through\n" + 
+                       reg).toAscii()));
+      return fatal;
     }
     if (line.indexOf("ICY 200 OK") != 0) {
@@ -164,5 +193,9 @@
 void bncGetThread::run() {
 
-  if ( initRun() != success ) {
+  if      (initRun() == fatal) {
+    QThread::exit(1);
+    return;
+  }
+  else if ( initRun() != success ) {
     emit(newMessage(_staID + ": initRun failed, reconnecting"));
     tryReconnect();
