<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rehash(self):
 """ Rehashes the IRCd's configuration file. """

        with self.lock:
            self.send('REHASH')
            if self.readable():
                msg = self._recv(expected_replies=('382',))
                if msg[0] == '382':
                    pass