- sed "s/.* HDWTAG .*/hostname $NEWIP \/* HDWTAG *\//" > $CONFDIR/temp
-mv $CONFDIR/temp $CONFIGDIR/unrealircd.conf
-$BINDIR/$BINARY -rehash
+ sed "s/.* HDWTAG .*/hostname ::ffff:$NEWIP; \/* HDWTAG *\//" > $CONFIGDIR/temp
+mv $CONFIGDIR/temp $CONFIGDIR/unrealircd.conf
+killall -HUP $BINARY
+
+fi