mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Remove unused "bool have_arg" from IRC_WHO()
This fixes: irc-info.c: In function ‘IRC_WHO’: irc-info:936:18: warning: variable ‘have_arg’ set but not used
This commit is contained in:
		| @@ -933,7 +933,7 @@ IRC_WHO_Mask(CLIENT *Client, char *Mask, bool OnlyOps) | |||||||
| GLOBAL bool | GLOBAL bool | ||||||
| IRC_WHO(CLIENT *Client, REQUEST *Req) | IRC_WHO(CLIENT *Client, REQUEST *Req) | ||||||
| { | { | ||||||
| 	bool only_ops, have_arg; | 	bool only_ops; | ||||||
| 	CHANNEL *chan; | 	CHANNEL *chan; | ||||||
|  |  | ||||||
| 	assert (Client != NULL); | 	assert (Client != NULL); | ||||||
| @@ -944,7 +944,6 @@ IRC_WHO(CLIENT *Client, REQUEST *Req) | |||||||
| 					  Client_ID(Client), Req->command); | 					  Client_ID(Client), Req->command); | ||||||
|  |  | ||||||
| 	only_ops = false; | 	only_ops = false; | ||||||
| 	have_arg = false; |  | ||||||
|  |  | ||||||
| 	if (Req->argc == 2) { | 	if (Req->argc == 2) { | ||||||
| 		if (strcmp(Req->argv[1], "o") == 0) | 		if (strcmp(Req->argv[1], "o") == 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton