Dave
07-15-2005, 05:56 PM
This is to enable umode +c like display of Invalid Username error messages.
This has been tested with Bahamut 1.8.3-irctoo.
Freddie Agricola (derfy@derfy.net) - Dave Wintrip (dave@purevanity.net)
In src/s_user.c, look for the following lines:
sendto_realops_lev(REJ_LEV, "Invalid username: %s (%s@%s)",
nick, user->username, user->host);
Should be 4 such lines. (egrep -r -i 'REJ_LEV, "Invalid username:' * works for finding them all. Only the ones in src/s_user.c matter.)
Change this into:
sendto_realops_lev(REJ_LEV, "Invalid username: %s (%s@%s) [%s]",
nick, user->username, user->host, sptr->hostip);
Voila!
This has been tested with Bahamut 1.8.3-irctoo.
Freddie Agricola (derfy@derfy.net) - Dave Wintrip (dave@purevanity.net)
In src/s_user.c, look for the following lines:
sendto_realops_lev(REJ_LEV, "Invalid username: %s (%s@%s)",
nick, user->username, user->host);
Should be 4 such lines. (egrep -r -i 'REJ_LEV, "Invalid username:' * works for finding them all. Only the ones in src/s_user.c matter.)
Change this into:
sendto_realops_lev(REJ_LEV, "Invalid username: %s (%s@%s) [%s]",
nick, user->username, user->host, sptr->hostip);
Voila!