summaryrefslogtreecommitdiff
path: root/debian/patches/netrom-motd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/netrom-motd.patch')
-rw-r--r--debian/patches/netrom-motd.patch19
1 files changed, 12 insertions, 7 deletions
diff --git a/debian/patches/netrom-motd.patch b/debian/patches/netrom-motd.patch
index d8243fa..8c53a1f 100644
--- a/debian/patches/netrom-motd.patch
+++ b/debian/patches/netrom-motd.patch
@@ -1,18 +1,23 @@
--- a/node.c
+++ b/node.c
-@@ -301,6 +301,7 @@
+@@ -301,6 +301,11 @@
node_log(LOGLVL_LOGIN, "%s @ %s logged in", User.call, User.ul_name);
#ifdef HAVEMOTD
if (User.ul_type == AF_NETROM) {
-+ axio_printf(NodeIo, "Fit like eh day Netrommie. \n");
++ node_msg("%s - Welcome to %s", VERSION, NodeId);
++ if ((fp = fopen(HAVEMOTD, "r")) != NULL) {
++ while (fgets(buf, 256, fp) != NULL) axio_puts(buf,NodeIo);
++ axio_puts ("\n",NodeIo);
++ }
/* axio_printf(NodeIo, "%s} Welcome.\n", NodeId); */
} else
if ((User.ul_type == AF_INET) || (User.ul_type == AF_INET6)) {
-@@ -362,6 +363,7 @@
- else if ((User.ul_type != AF_NETROM) && (User.ul_type != AF_ROSE)) {
- node_prompt();
- } else if ((User.ul_type == AF_NETROM) || (User.ul_type == AF_ROSE)) {
-+ node_prompt();
+@@ -365,6 +370,8 @@
axio_printf(NodeIo,"\n");
}
}
++ } else {
++ node_prompt();
+ }
+ if (check_perms(PERM_ANSI, 0L) != -1) {
+ /* Not needed from what I see so far. */