mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
improve code formatting
This commit is contained in:
parent
3aa9734c1c
commit
fe6013be42
@ -242,7 +242,8 @@ int quitmsg_is_split(const char *msg)
|
|||||||
- can't contain ':' or '/' chars (some servers allow URLs)
|
- can't contain ':' or '/' chars (some servers allow URLs)
|
||||||
*/
|
*/
|
||||||
host2 = NULL;
|
host2 = NULL;
|
||||||
prev = '\0'; host1_dot = host2_dot = 0;
|
prev = '\0';
|
||||||
|
host1_dot = host2_dot = 0;
|
||||||
while (*msg != '\0') {
|
while (*msg != '\0') {
|
||||||
if (*msg == ' ') {
|
if (*msg == ' ') {
|
||||||
if (prev == '.' || prev == '\0') {
|
if (prev == '.' || prev == '\0') {
|
||||||
@ -254,7 +255,7 @@ int quitmsg_is_split(const char *msg)
|
|||||||
return FALSE; /* only one space allowed */
|
return FALSE; /* only one space allowed */
|
||||||
if (!host1_dot)
|
if (!host1_dot)
|
||||||
return FALSE; /* host1 didn't have domain */
|
return FALSE; /* host1 didn't have domain */
|
||||||
host2 = msg+1;
|
host2 = msg + 1;
|
||||||
} else if (*msg == '.') {
|
} else if (*msg == '.') {
|
||||||
if (prev == '\0' || prev == ' ' || prev == '.') {
|
if (prev == '\0' || prev == ' ' || prev == '.') {
|
||||||
/* domains can't start with '.'
|
/* domains can't start with '.'
|
||||||
|
Loading…
Reference in New Issue
Block a user