Author: Gerfried Fuchs <rhonda@debian.at>	vim:ft=diff:
Description: Allows handing over complete JIDs for room and chat types

Index: nagzilla-1.5.4-2/nagzilla/nagzillad.pl
===================================================================
--- nagzilla-1.5.4-2.orig/nagzilla/nagzillad.pl
+++ nagzilla-1.5.4-2/nagzilla/nagzillad.pl
@@ -116,12 +116,12 @@ $mess = "@clientin[2]";
 	my $message = Net::Jabber::Message->new();
 	if ($style eq "room") { 
 		$message->SetMessage( "type"	=> 'groupchat',
-							  "to"		=> "$roomy\@$confserver",
+							  "to"		=> $roomy =~ /@/ ? $roomy : "$roomy\@$confserver",
 							  "type"	=> 'chat',
 							  "body"	=> "$mess" );
 
 				} else { 
-	         $message->SetMessage ( "to"		=> "$roomy\@$jabberserver",
+	         $message->SetMessage ( "to"		=> $roomy =~ /@/ ? $roomy : "$roomy\@$jabberserver",
 					"subject"	=> "Monitoring Alert",
 					"type"		=> 'chat',
 					"body" 		=> "$mess" ); 

