User:Allens/gui revert and warn.java.patch1

{{pre2| --- gui_revert_and_warn.java.old	2012-05-21 17:32:42.000000000 -0400 +++ gui_revert_and_warn.java	2012-06-01 10:16:15.000000000 -0400 @@ -330,7 +330,7 @@ 				// We assume current month/year is last on page, so it // is always safe to append content. -			api_post.edit_append_text(talk_page, warning_comment(queue_type), +			api_post.edit_append_text(talk_page, warning_comment(queue_type, warning_level), warning, false, this.edit_pkg.get_token, this.cookie, true, no_watchlist); @@ -647,15 +647,16 @@ 	/** 	 * Return the comment to be associated with WARNING PLACEMENT 	 * @param type Type of warning being left (vandalism, spam, etc.) +	 * @param warning_level Level of warning being left (1-4) 	 * @return Textual comment to associate with the warning action 	 */ -	private static String warning_comment(QUEUE_TYPE type){ +	private static String warning_comment(QUEUE_TYPE type, int warning_level){ 		if(type.equals(QUEUE_TYPE.VANDALISM)) 			return("User warning for unconstructive editing " + -					"found using STiki"); +					"found using STiki: Warning level " + warning_level); else // if(type.equals(QUEUE_TYPE.LINK_SPAM)) return("User warning for unconstructive external link " + -					"found using STiki"); +					"found using STiki: Warning level " + warning_level); 	} 	/** }}